This commit is contained in:
2024-03-15 23:20:20 +08:00
parent 3ce85e2396
commit 351e20f0c0
19 changed files with 311 additions and 72 deletions

View File

@@ -27,6 +27,8 @@ function requestInterceptors() {
if(token && config.header) {
config.header.token = token;
config.header.companyid = getCompanyId();
// config.header.contentType = "x-www-form-urlencoded"
}
return config;
},
@@ -70,7 +72,7 @@ function responseInterceptors() {
requestQueue.forEach(cb => cb());
// 重试完了清空这个队列
requestQueue = [];
isRefreshing = false;
// isRefreshing = false;
// 重新执行本次请求
return uni.$u.http.request(config);
} else {