过程监督 迁移中
This commit is contained in:
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user