|
@@ -48,6 +48,14 @@ const { userSubmitPaper, realSubmitPaper } = useRealSubmitPaper(
|
|
|
examRecordDataId
|
|
|
);
|
|
|
|
|
|
+async function userClickSubmit() {
|
|
|
+ store.increaseGlobalMaskCount("userClickSubmit");
|
|
|
+ void userSubmitPaper();
|
|
|
+ // 一定要在这里等待,不然用户快速双击就会点两次
|
|
|
+ await new Promise((res) => setTimeout(res, 1000));
|
|
|
+ store.decreaseGlobalMaskCount("userClickSubmit");
|
|
|
+}
|
|
|
+
|
|
|
onBeforeUpdate(() => {
|
|
|
_hmt.push(["_trackEvent", "答题页面", "题目切换"]);
|
|
|
void answerAllQuestions();
|
|
@@ -206,7 +214,7 @@ addInterval(() => checkRemoteApp(), 3 * 60 * 1000);
|
|
|
{{ store.user.studentCodeList.join(",") }}
|
|
|
</div>
|
|
|
<QuestionFilters></QuestionFilters>
|
|
|
- <n-button type="success" @click="userSubmitPaper">交卷</n-button>
|
|
|
+ <n-button type="success" @click="userClickSubmit">交卷</n-button>
|
|
|
</div>
|
|
|
<div id="examing-home-question" class="main">
|
|
|
<QuestionView />
|