f
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user