|
@@ -90,7 +90,7 @@ const instance = axios.create({
|
|
|
|
|
|
// instance.defaults.headers.common['Authorization'] = ""; //请求token信息配置
|
|
// instance.defaults.headers.common['Authorization'] = ""; //请求token信息配置
|
|
// instance.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded'; //请求type设置
|
|
// instance.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded'; //请求type设置
|
|
-instance.defaults.timeout = 1000 * 60 * 60; //在超时前,所有请求都会等待
|
|
|
|
|
|
+instance.defaults.timeout = 1000 * 60 * 3; //在超时前,所有请求都会等待
|
|
// instance.defaults.withCredentials = true;
|
|
// instance.defaults.withCredentials = true;
|
|
|
|
|
|
instance.interceptors.request.use(function (config) {
|
|
instance.interceptors.request.use(function (config) {
|