Michael Wang 4 lat temu
rodzic
commit
b4091cde49
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      src/features/Login/Login.vue

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

@@ -398,7 +398,7 @@ export default {
         "ccnu.ecs.qmth.com.cn",
         "snnu.ecs.qmth.com.cn",
         "swjtu.ecs.qmth.com.cn",
-      ].includes(this.$route.params.domain)
+      ].includes(this.schoolDomain)
     ) {
       if (
         !isElectron() ||
@@ -412,7 +412,7 @@ export default {
       }
     }
 
-    if (["cup.ecs.qmth.com.cn"].includes(this.$route.params.domain)) {
+    if (["cup.ecs.qmth.com.cn"].includes(this.schoolDomain)) {
       // console.log(UA.getBrowser(), chromeUA);
       if (
         UA.getBrowser().name !== "electron-exam-shell" ||