Procházet zdrojové kódy

关闭cugr、sdu最新版要求

Michael Wang před 5 roky
rodič
revize
c7866e814d
1 změnil soubory, kde provedl 18 přidání a 18 odebrání
  1. 18 18
      src/features/Login/Login.vue

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

@@ -394,24 +394,24 @@ export default {
       }
     }
 
-    if (
-      ["cugr.ecs.qmth.com.cn", "sdu.ecs.qmth.com.cn"].includes(
-        this.$route.params.domain
-      )
-    ) {
-      // console.log(UA.getBrowser(), chromeUA);
-      if (
-        UA.getBrowser().name !== "electron-exam-shell" ||
-        UA.getBrowser().major !== "2" ||
-        chromeUA.major < "76"
-      ) {
-        this.disableLoginBtnBecauseAppVersionChecker = true;
-        this.$Message.error({
-          content: "请与学校申请最新的客户端,进行考试!",
-          duration: 2 * 24 * 60 * 60,
-        });
-      }
-    }
+    // if (
+    //   ["cugr.ecs.qmth.com.cn", "sdu.ecs.qmth.com.cn"].includes(
+    //     this.$route.params.domain
+    //   )
+    // ) {
+    //   // console.log(UA.getBrowser(), chromeUA);
+    //   if (
+    //     UA.getBrowser().name !== "electron-exam-shell" ||
+    //     UA.getBrowser().major !== "2" ||
+    //     chromeUA.major < "76"
+    //   ) {
+    //     this.disableLoginBtnBecauseAppVersionChecker = true;
+    //     this.$Message.error({
+    //       content: "请与学校申请最新的客户端,进行考试!",
+    //       duration: 2 * 24 * 60 * 60,
+    //     });
+    //   }
+    // }
 
     await this.checkElectronConfig();
     await this.checkVCam();