|
@@ -14,7 +14,7 @@ import "./filters";
|
14
|
Vue.use(Cube);
|
14
|
Vue.use(Cube);
|
15
|
console.info('v1.0.2');
|
15
|
console.info('v1.0.2');
|
16
|
// 修改请求接口(删掉地址栏中的app2)
|
16
|
// 修改请求接口(删掉地址栏中的app2)
|
17
|
-let domainName = document.domain; //域名
|
|
|
|
|
17
|
+let domainName = location.host; //域名
|
18
|
let protocolName = document.location.protocol; //http协议
|
18
|
let protocolName = document.location.protocol; //http协议
|
19
|
axios.defaults.baseURL = protocolName + "//" + domainName;
|
19
|
axios.defaults.baseURL = protocolName + "//" + domainName;
|
20
|
|
20
|
|