This commit is contained in:
2026-03-21 14:33:00 +08:00
parent 68da50984c
commit 47a9eaebcd
6 changed files with 24 additions and 29 deletions

View File

@@ -746,8 +746,8 @@ const handleExport = async (options) => {
// 调用导出API需要在后端添加相应的API
const response = await financeApi.exportAdminPurchaseRecords(params)
// 创建下载链接
const blob = new Blob([response], {
// 创建下载链接(二进制在 response.data见 request 响应拦截器包装)
const blob = new Blob([response.data], {
type: options.format === 'excel'
? 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
: 'text/csv;charset=utf-8'