Ver Fonte

可以关闭人脸比对的提示

Michael Wang há 6 anos atrás
pai
commit
e866f13ab8

+ 10 - 2
src/components/FaceRecognition/FaceRecognition.vue

@@ -222,9 +222,17 @@ export default {
         }
         if (snapRes.isCompleted) {
           if (snapRes.isStranger) {
-            this.$Message.error("请独立考试");
+            this.$Message.error({
+              content: "请独立完成考试",
+              duration: 5,
+              closable: true
+            });
           } else if (!snapRes.isPass) {
-            this.$Message.error("请保持正确坐姿");
+            this.$Message.error({
+              content: "请调整坐姿,诚信考试",
+              duration: 5,
+              closable: true
+            });
           }
         } else {
           setTimeout(

+ 1 - 1
src/features/Login/Login.vue

@@ -93,7 +93,7 @@ export default {
     this.$Message.config({
       duration: 15,
       size: "large",
-      closable: true
+      closable: true // 没有影响到所有的组件。。。  https://github.com/iview/iview/issues/2962
     });
 
     try {

+ 7 - 2
src/features/OnlineExam/Examing/FaceTracking.vue

@@ -54,11 +54,16 @@ export default {
           }
 
           if (trackMultiplePerson) {
-            that.$Message.warning({ content: "请独立完成考试", duration: 5 });
+            that.$Message.warning({
+              content: "请独立完成考试",
+              duration: 5,
+              closable: true
+            });
           } else {
             that.$Message.warning({
               content: "请调整坐姿,诚信考试",
-              duration: 5
+              duration: 5,
+              closable: true
             });
           }
           trackWarnings = 0;