fix: 西药管理、西药、订单导出
This commit is contained in:
@@ -19,6 +19,7 @@ import { Base64 } from 'js-base64';
|
||||
import { useAuthStore } from '#/store';
|
||||
|
||||
import { refreshTokenApi } from './core';
|
||||
import {downloadByData} from "#/util/tool";
|
||||
|
||||
const { apiURL } = useAppConfig(import.meta.env, import.meta.env.PROD);
|
||||
|
||||
@@ -130,9 +131,12 @@ function createRequestClient(baseURL: string) {
|
||||
throw Object.assign({}, response, { response });
|
||||
}
|
||||
}
|
||||
} else if (response.data instanceof Blob) {
|
||||
return response;
|
||||
}
|
||||
|
||||
throw Object.assign({}, response, { response });
|
||||
return response;
|
||||
// throw Object.assign({}, response, { response });
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user