|
@@ -114,7 +114,7 @@ const areas = [
|
|
|
const TIME_OUT = 120000;
|
|
|
|
|
|
// 创建axios实例
|
|
|
-const axiosInstance = axios.create({
|
|
|
+const axiosConfig = {
|
|
|
baseURL: 'https://api.zjtcn.com/user',
|
|
|
timeout: TIME_OUT,
|
|
|
/* proxy: {
|
|
@@ -129,7 +129,11 @@ const axiosInstance = axios.create({
|
|
|
'Accept-Language': 'zh-TW,zh;q=0.9,en-US;q=0.8,en;q=0.7,zh-CN;q=0.6',
|
|
|
},
|
|
|
//responseType: 'document'
|
|
|
-});
|
|
|
+};
|
|
|
+const axiosInstance = axios.create(axiosConfig);
|
|
|
+
|
|
|
+console.log('axiosConfig=-========================================');
|
|
|
+console.log(axiosConfig);
|
|
|
|
|
|
// 响应拦截器
|
|
|
axiosInstance.interceptors.response.use(function (response) {
|
|
@@ -144,6 +148,9 @@ axiosInstance.interceptors.response.use(function (response) {
|
|
|
});
|
|
|
|
|
|
async function post(url, data) {
|
|
|
+ if (url === '/dyn_code') {
|
|
|
+ console.log(axiosInstance);
|
|
|
+ }
|
|
|
return await axiosInstance.post(url, querystring.stringify(data));
|
|
|
}
|
|
|
|