Browse Source

修改域名

seimin 2 years ago
parent
commit
18fddecd99
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main.js

+ 1 - 1
src/main.js

@@ -12,7 +12,7 @@ import "./filters";
12 12
 console.info('v1.0.2');
13 13
 Vue.use(Cube);
14 14
 // 设置默认请求接口(删掉地址栏中的后缀)
15
-let domainName = document.domain; //域名
15
+let domainName = location.host; //域名
16 16
 let protocolName = document.location.protocol; //http协议
17 17
 axios.defaults.baseURL = protocolName + "//" + domainName;
18 18
 // axios.defaults.baseURL = http.host;