mirror of
https://gitee.com/dromara/go-view.git
synced 2026-04-23 00:00:12 +08:00
fix: 修改导出的数据项
This commit is contained in:
@@ -186,8 +186,12 @@ const customRequest = (options: UploadCustomRequestOptions) => {
|
||||
|
||||
// 下载文件
|
||||
const download = () => {
|
||||
window['$message'].success('正在下载文件...')
|
||||
downloadFile(getSource.value, undefined, 'json')
|
||||
try {
|
||||
window['$message'].success('正在下载文件!')
|
||||
downloadFile(JSON.stringify(targetData.value?.option?.dataset), undefined, 'json')
|
||||
} catch (error) {
|
||||
window['$message'].success('下载失败,数据错误!')
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user