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

@@ -862,7 +862,7 @@ const handleExport = async () => {
const response = await apiCallApi.exportAdminApiCalls(params)
// 创建下载链接
const blob = new Blob([response], {
const blob = new Blob([response.data], {
type: exportOptions.format === 'excel'
? 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
: 'text/csv;charset=utf-8'

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'

View File

@@ -701,7 +701,7 @@ const handleExport = async (options) => {
const response = await rechargeRecordApi.exportAdminRechargeRecords(params)
// 创建下载链接
const blob = new Blob([response], {
const blob = new Blob([response.data], {
type: options.format === 'excel'
? 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
: 'text/csv;charset=utf-8'

View File

@@ -575,7 +575,7 @@ const handleExport = async (options) => {
const response = await walletTransactionApi.exportAdminWalletTransactions(params)
// 创建下载链接
const blob = new Blob([response], {
const blob = new Blob([response.data], {
type: options.format === 'excel'
? 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
: 'text/csv;charset=utf-8'

View File

@@ -620,8 +620,8 @@ const handleExport = async (options) => {
// 调用导出API
const response = await apiCallApi.exportAdminApiCalls(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'