Explorar o código

兼容domainInUrl

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

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

@@ -165,7 +165,9 @@ export default {
   },
   data() {
     return {
-      domainInUrl: this.$route.params.domain,
+      domainInUrl:
+        this.$route.params.domain ||
+        window.location.hostname.split(".")[0] + ".ecs.qmth.com.cn",
       QECSConfig: {},
       loginType: "STUDENT_CODE",
       errorInfo: "",