Commit d38b9c7a by crushh

update: 本地开发接口前缀

parent 4ce57196
...@@ -21,13 +21,10 @@ import { Message } from 'element-ui'; ...@@ -21,13 +21,10 @@ import { Message } from 'element-ui';
// } // }
Vue.axios.defaults.timeout = 500000; Vue.axios.defaults.timeout = 500000;
// let local = window.location.origin; let local = window.location.origin;
// eslint-disable-next-line
let local = process.env.NODE_ENV == 'development' ? 'http://localhost:8006' : ''; // let local = process.env.NODE_ENV == 'development' ? 'https://www.gicdev.com' : '';
/* if (local.indexOf('localhost') != -1) {
local = 'https://www.gicdev.com';
http://localhost:8006
} */
let axiosPromiseArr = []; //储存cancel toke let axiosPromiseArr = []; //储存cancel toke
let pending = []; //声明一个数组用于存储每个ajax请求的取消函数和ajax标识 let pending = []; //声明一个数组用于存储每个ajax请求的取消函数和ajax标识
let CancelToken = Vue.axios.CancelToken; let CancelToken = Vue.axios.CancelToken;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment