导出当日汇总

This commit is contained in:
zhonghua.li
2026-04-25 22:37:34 +08:00
parent 711052541d
commit e45f71956b
3 changed files with 90 additions and 0 deletions

View File

@@ -65,6 +65,13 @@ service.interceptors.request.use(
// response interceptor
service.interceptors.response.use(
response => {
// File download responses (blob/arraybuffer) should bypass JSON normalization.
// Otherwise the logic below will treat Blob as an error object and reject.
const rt = response?.config?.responseType
if (rt === 'blob' || rt === 'arraybuffer' || (typeof Blob !== 'undefined' && response?.data instanceof Blob)) {
return response.data
}
const loginHeaderValues = {
'X-Role-Name': pickValueFromSources(
[response.headers, response.data?.data, response.data],