|
@@ -112,7 +112,7 @@ export default class RequestHttp { |
|
|
(response: AxiosResponse) => { |
|
|
(response: AxiosResponse) => { |
|
|
// 检查并存储授权信息 |
|
|
// 检查并存储授权信息 |
|
|
this.checkAndStoreAuthentication(response); |
|
|
this.checkAndStoreAuthentication(response); |
|
|
const { data, config } = response; |
|
|
|
|
|
|
|
|
const { data, config }: any = response; |
|
|
const userStore = useUserStore(); |
|
|
const userStore = useUserStore(); |
|
|
axiosCanceler.removePending(config); |
|
|
axiosCanceler.removePending(config); |
|
|
tryHideFullScreenLoading(); |
|
|
tryHideFullScreenLoading(); |
|
@@ -141,8 +141,8 @@ export default class RequestHttp { |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
// 成功请求(在页面上除非特殊情况,否则不用处理失败逻辑) |
|
|
// 成功请求(在页面上除非特殊情况,否则不用处理失败逻辑) |
|
|
if (`${config.baseURL}${config.url}` == "/api/violation/analysis/reportExport") { |
|
|
|
|
|
return response; |
|
|
|
|
|
|
|
|
if (config.showHeader) { |
|
|
|
|
|
return response; //平时用在打印、导出、下载的时候使用 |
|
|
} else { |
|
|
} else { |
|
|
return data; |
|
|
return data; |
|
|
} |
|
|
} |
|
|