同步数据

This commit is contained in:
XGL-THINKPAD-X1\rucky
2024-01-23 16:12:41 +08:00
parent 2ab7f2daab
commit 8db3e50c0f
7 changed files with 134 additions and 69 deletions

View File

@@ -36,10 +36,13 @@ const answerFn = (item, event) => {
qid: cid,
answer: item.secore,
text: item.text,
aid: item.aid
});
} else {
answerList.value[has].answer = item.secore;
answerList.value[has].text = item.text;
answerList.value[has].aid = item.aid;
}
// 更新下一题信息
@@ -63,10 +66,12 @@ const answerFn = (item, event) => {
qid: cid,
answer: item.secore,
text: item.text,
aid: item.aid
});
} else {
answerList.value[has].answer = item.secore;
answerList.value[has].text = item.text;
answerList.value[has].aid = item.aid;
}
resultBtnAni.play();
}
@@ -139,6 +144,10 @@ const prevePage = (event) => {
}
activeId.value = "";
currentId.value--;
// 查询上一题做的选择
console.log('当前题库:',answerList.value[currentId.value]);
activeId.value = answerList.value[currentId.value].aid
});
};