联调 承载能力评估

This commit is contained in:
GGJ
2024-03-06 20:37:36 +08:00
parent e4745f891f
commit f92e820986
18 changed files with 168 additions and 105 deletions

View File

@@ -55,9 +55,6 @@ function createAxios<Data = any, T = ApiPromise<Data>>(
// 请求拦截
Axios.interceptors.request.use(
config => {
// 取消重复请求
removePending(config)
options.CancelDuplicateRequest && addPending(config)
@@ -77,10 +74,7 @@ function createAxios<Data = any, T = ApiPromise<Data>>(
config.headers.Authorization = 'Basic bmpjbnRlc3Q6bmpjbnBxcw=='
}
}
if(config.url?.substring(0, 4)=='/hzj'){
config.url=config.url?.slice(4)
config.baseURL='/hzj'
}
return config
},
error => {