From 16052ff00caf793c0bba8fc35f4492a44d62bc0c Mon Sep 17 00:00:00 2001 From: aixianling Date: Tue, 20 Jun 2023 10:08:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81=E6=96=87=E4=BB=B6=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E5=8F=AF=E6=8C=87=E5=AE=9A=E4=B8=8B=E8=BD=BD=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/packages/basic/AiFileList.vue | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/ui/packages/basic/AiFileList.vue b/ui/packages/basic/AiFileList.vue index f3f887ca..49de9f2b 100644 --- a/ui/packages/basic/AiFileList.vue +++ b/ui/packages/basic/AiFileList.vue @@ -47,13 +47,7 @@ export default { methods: { downFile(item) { if (this.clickDownload) { - const link = document.createElement('a') - link.style.display = 'none' - link.href = item.url - link.setAttribute('download', item.name) - document.body.appendChild(link) - link.click() - document.body.removeChild(link) + this.$download(item.url, item.name) } else window.open(`${item.url}`) } }