Michael Wang 3 vuotta sitten
vanhempi
commit
b343b52ac7
1 muutettua tiedostoa jossa 7 lisäystä ja 2 poistoa
  1. 7 2
      src/App.vue

+ 7 - 2
src/App.vue

@@ -66,6 +66,11 @@ export default {
             "学生端不是置顶状态",
           ]);
           if (this.$route.name === "OnlineExamingHome") {
+            this.$Message.warning({
+              content: "考试过程请勿尝试切屏,可能影响考试成绩",
+              duration: 10,
+              closable: true,
+            });
             this.$http
               .post(
                 "/api/ecs_oe_student/examControl/switchScreen?examRecordDataId=" +
@@ -73,9 +78,9 @@ export default {
               )
               .then((res) => {
                 if (
-                  this.QECSConfig.PREVENT_CHEATING_CONFIG.includes[
+                  this.QECSConfig.PREVENT_CHEATING_CONFIG.includes(
                     "RECORD_SWITCH_SCREEN"
-                  ]
+                  )
                 ) {
                   if (res.data) {
                     // console.log(res.data);