Explorar el Código

超过切屏次数触发交卷时,关闭有可能点击了“交卷”按钮时弹出的确认交卷的弹框,防止二次触发交卷接口报错

刘洋 hace 1 año
padre
commit
02eeaf99d2
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. 4 1
      src/features/OnlineExam/ExamEnd/SubmitPaper.vue

+ 4 - 1
src/features/OnlineExam/ExamEnd/SubmitPaper.vue

@@ -43,7 +43,10 @@ async function realSubmitPaper() {
   });
 }
 
-onMounted(() => realSubmitPaper());
+onMounted(() => {
+  $dialog.destroyAll();
+  return realSubmitPaper();
+});
 
 onUnmounted(() => {
   store.decreaseGlobalMaskCount("SubmitPaper");