feat: 修复排名信息显示错误的问题
This commit is contained in:
parent
fe3b08bae4
commit
2f682b6a18
@ -59,7 +59,7 @@ const sendRank = async () => {
|
||||
overHandred.sort((a: any, b: any) => b.voteCount - a.voteCount);
|
||||
const index = overHandred.findIndex((v) => v.teamName === "聚光灯");
|
||||
const diff = overHandred[0].voteCount - overHandred[index].voteCount;
|
||||
const selfContent = `当前票数:${list[index].voteCount},排名:${
|
||||
const selfContent = `当前票数:${overHandred[index].voteCount},排名:${
|
||||
index + 1
|
||||
},距离第一名:${diff}`;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user