修改考试中心完成后替换错误BUG

This commit is contained in:
田岩
2025-09-20 18:06:15 +08:00
parent 545c12628d
commit aa7d58ebed
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -58,7 +58,9 @@
if(props.tabIndex !== 0 && item.examStatText === 'Y') {
reload()
} else{
const index = data_list.value.findIndex((res) => res.taskId === item.taskId);
const index = data_list.value.findIndex((res) => res.examId === item.examId);
console.log('index', index);
console.log('item', item);
if (index !== -1) {
Object.assign(data_list.value[index], {
...item