|
@@ -5,7 +5,7 @@ $.support.cors = true;
|
|
const axios=require('axios');
|
|
const axios=require('axios');
|
|
const qs=require('querystring');
|
|
const qs=require('querystring');
|
|
const isLocal = window.location.hostname.indexOf('localhost')!=-1;
|
|
const isLocal = window.location.hostname.indexOf('localhost')!=-1;
|
|
-const qhost = !isLocal?host:'';
|
|
|
|
|
|
+const qhost = isLocal?host:'';
|
|
axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';
|
|
axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';
|
|
axios.defaults.baseURL = host; //默认地址
|
|
axios.defaults.baseURL = host; //默认地址
|
|
// axios.defaults.timeout = 60000; //请求超时
|
|
// axios.defaults.timeout = 60000; //请求超时
|