浏览代码

兼容domainInUrl

Michael Wang 5 年之前
父节点
当前提交
8896a65f5e
共有 1 个文件被更改,包括 3 次插入1 次删除
  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: "",