소스 검색

login bug

Michael Wang 4 년 전
부모
커밋
b4091cde49
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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" ||