|
@@ -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;
|