Explorar o código

small improvement

Michael Wang %!s(int64=6) %!d(string=hai) anos
pai
achega
345b4c74ca
Modificáronse 1 ficheiros con 5 adicións e 3 borrados
  1. 5 3
      src/features/Login/Login.vue

+ 5 - 3
src/features/Login/Login.vue

@@ -178,9 +178,11 @@ export default {
     }
 
     if (
-      this.$route.path.includes("xjtu.ecs.qmth.com.cn") ||
-      this.$route.path.includes("snnu.ecs.qmth.com.cn") ||
-      this.$route.path.includes("cup.ecs.qmth.com.cn")
+      [
+        "xjtu.ecs.qmth.com.cn",
+        "snnu.ecs.qmth.com.cn",
+        "cup.ecs.qmth.com.cn"
+      ].includes(this.$route.params.domain)
     ) {
       this.disableLoginBtn = true;
       if (