Michael Wang 4 жил өмнө
parent
commit
b4091cde49

+ 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" ||