deason 1 年之前
父节点
当前提交
b3b1f00c39
共有 1 个文件被更改,包括 7 次插入1 次删除
  1. 7 1
      src/modules/examwork/view/examStudent.vue

+ 7 - 1
src/modules/examwork/view/examStudent.vue

@@ -1738,6 +1738,7 @@ export default {
     },
     skipFaceSetting(row) {
       this.$confirm("是否跳过人脸?", "提示", {
+        distinguishCancelAndClose: true,
         confirmButtonText: "跳过",
         cancelButtonText: "不跳过",
         type: "warning",
@@ -1757,7 +1758,12 @@ export default {
             });
           });
         })
-        .catch(() => {
+        .catch((action) => {
+          console.log("action:" + action);
+          if (action === "close") {
+            return;
+          }
+
           let url =
             EXAM_WORK_API +
             "/exam/skip/face/setting?enabled=false&examId=" +