Browse Source

开发环境去除端口,当做domain

Michael Wang 6 năm trước cách đây
mục cha
commit
2a127b3e67
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/modules/portal/views/Login.vue

+ 1 - 1
src/modules/portal/views/Login.vue

@@ -157,7 +157,7 @@ export default {
       this.$router.push(this.$route.hash.slice(1));
       return;
     }
-    this.loginInfo.domain = window.location.host;
+    this.loginInfo.domain = window.location.hostname;
     sessionStorage.clear();
     var params = this.$route.query;