Parcourir la source

fake ecs-dev.qmth.com.cn as epcc

Michael Wang il y a 5 ans
Parent
commit
7e3f59f738
1 fichiers modifiés avec 5 ajouts et 1 suppressions
  1. 5 1
      src/features/Login/Login.vue

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

@@ -712,7 +712,11 @@ export default {
       return domain;
     },
     isEPCC() {
-      return this.schoolDomain === "iepcc-ps.qmth.com.cn";
+      return (
+        this.schoolDomain === "iepcc-ps.qmth.com.cn" ||
+        (this.schoolDomain === "ecs-dev.qmth.com.cn" &&
+          location.search.includes("redirectUrl="))
+      );
     },
     usernameInputPlaceholder() {
       if (this.loginType === "STUDENT_CODE") {