mirror of
https://github.com/nsnail/NetAdmin.git
synced 2025-07-05 10:08:15 +08:00
fix: 🐛 导出文件的responseType (#205)
Co-authored-by: tk <fiyne1a@dingtalk.com>
This commit is contained in:
@ -504,7 +504,7 @@ export default {
|
||||
async exportData() {
|
||||
this.loading = true
|
||||
try {
|
||||
await this.exportApi.post(this.getQueryParams())
|
||||
await this.exportApi.post(this.getQueryParams(), { responseType: 'blob' })
|
||||
this.$message.success(`数据已导出(上限5万条)`)
|
||||
} catch {}
|
||||
this.loading = false
|
||||
|
Reference in New Issue
Block a user