From 83441f2fff1e83d44fcd58050c8a2ed1f7eb52a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=96=AA=E5=90=8D?= <942005050@qq.com> Date: Fri, 13 Oct 2023 11:27:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E5=85=A5=E7=BB=84=E4=BB=B6=20?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=E4=B8=8B=E8=BD=BD=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E6=8A=A5=E5=91=8Aurl=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ImportForm/src/ImportForm.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/ImportForm/src/ImportForm.vue b/src/components/ImportForm/src/ImportForm.vue index 6213bd622..eb02c0140 100644 --- a/src/components/ImportForm/src/ImportForm.vue +++ b/src/components/ImportForm/src/ImportForm.vue @@ -163,12 +163,12 @@ const submitFormSuccess = (response: any) => { if(response.code == 500){ message.error('导入失败') return; - }else{ + } else if (response.data.errorCount > 0) { message.confirm('文件中有部分数据导入失败,是否下载失败数据?').then(() => { // download.excel(file, 'file_' + new Date().getTime()) // 通过url下载文件 const downloadElement = document.createElement('a') - downloadElement.setAttribute('href','https://sf3-cn.feishucdn.com/obj/ee-appcenter/99cc1467/Feishu-win32_ia32-6.11.16-signed.exe' ) + downloadElement.setAttribute('href', import.meta.env.VITE_BASE_URL + import.meta.env.VITE_API_URL + response.data.errorFile ) // 点击下载 downloadElement.click() })