Эх сурвалжийг харах

xjtu.ecs.qmth.com.cn 强制使用最新的客户端,包括虚拟摄像头检测

Michael Wang 6 жил өмнө
parent
commit
f814e623dc

+ 12 - 0
src/features/Login/Login.vue

@@ -228,6 +228,18 @@ export default {
     } else {
       this.disableLoginBtn = false;
     }
+
+    if (this.$route.path.includes("xjtu.ecs.qmth.com.cn")) {
+      this.disableLoginBtn = true;
+      var fs = window.nodeRequire("fs");
+      if (!fs.existsSync("multiCamera.exe")) {
+        this.disableLoginBtn = false;
+        this.$Message.error({
+          content: "请使用最新版本的客户端进行考试!",
+          duration: 2 * 24 * 60 * 60
+        });
+      }
+    }
   },
   methods: {
     ...mapMutations(["updateUser"]),