过程监督 迁移中

This commit is contained in:
GGJ
2024-03-06 16:14:09 +08:00
parent faec144f58
commit e4745f891f
10 changed files with 144 additions and 2 deletions

View File

@@ -55,6 +55,10 @@ function createAxios<Data = any, T = ApiPromise<Data>>(
// 请求拦截
Axios.interceptors.request.use(
config => {
// 取消重复请求
removePending(config)
options.CancelDuplicateRequest && addPending(config)
// 创建loading实例
@@ -73,7 +77,10 @@ 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 => {