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