Skip to content

Commit

Permalink
fix: 提交列表评测进度不增长
Browse files Browse the repository at this point in the history
  • Loading branch information
yhf2000 committed Sep 24, 2024
1 parent c7afb43 commit 6539c6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Component/submission/SubmissionList/SubmissionList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const SubmissionList = (props: any) => {
const submissionVersion = data[1]
// const checkpointType = data[2]
const checkpointIndex = data[3]
const checkpointId = data[4]
// const checkpointId = data[4]
const judgeResult = data[5]
const judgeScore = data[6]
const usedTime = data[7]
Expand Down Expand Up @@ -67,7 +67,7 @@ const SubmissionList = (props: any) => {
for (const x of dt) if (parseInt(x.result) <= 0) runningNumber += 1
if (runningNumber === 0) setWebSocketOpen(false)
} else { // 否则表示同步评测点信息
dt[Index].cur_cpt.add(checkpointId)
dt[Index].cur_cpt.add(checkpointIndex)
dt[Index].RunningStep = dt[Index].cur_cpt.size
dt[Index].score += judgeScore

Expand Down

0 comments on commit 6539c6e

Please sign in to comment.