联调 自定义报表
This commit is contained in:
@@ -55,9 +55,9 @@ function createAxios<Data = any, T = ApiPromise<Data>>(
|
||||
// 请求拦截
|
||||
Axios.interceptors.request.use(
|
||||
config => {
|
||||
if(config.url?.substring(0, 13)=='/advance-boot'){
|
||||
config.url=config.url?.slice(13)
|
||||
config.baseURL='/hzj'
|
||||
if (config.url?.substring(0, 13) == '/advance-boot') {
|
||||
config.url = config.url?.slice(13)
|
||||
config.baseURL = '/hzj'
|
||||
}
|
||||
// 取消重复请求
|
||||
removePending(config)
|
||||
@@ -93,6 +93,7 @@ function createAxios<Data = any, T = ApiPromise<Data>>(
|
||||
options.loading && closeLoading(options) // 关闭loading
|
||||
|
||||
if (
|
||||
Array.isArray(response.data) ||
|
||||
response.data.code === 'A0000' ||
|
||||
response.data.type === 'application/json' ||
|
||||
response.data.type === 'application/octet-stream' ||
|
||||
|
||||
Reference in New Issue
Block a user