From b6be8ea1080647717cb10c2630d09fc3bc0b920f Mon Sep 17 00:00:00 2001 From: Ly <503441659@qq.com> Date: Thu, 29 May 2025 11:53:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=9C=E5=93=81=E4=B8=8B=E8=BD=BD=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/userInfo/components/reacList.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/userInfo/components/reacList.vue b/src/views/userInfo/components/reacList.vue index 970d140..a3101c3 100644 --- a/src/views/userInfo/components/reacList.vue +++ b/src/views/userInfo/components/reacList.vue @@ -209,11 +209,11 @@ const headerChange = (pageNumber: any) => { } // 下载文件 const download = async (url:any,name:any) => { - window.open(import.meta.env.VITE_APP_BASE_API + '/sys/common/zuopin/' + url) + // window.open(import.meta.env.VITE_APP_BASE_API + '/sys/common/zuopin/' + url) const a = document.createElement('a') a.style.display = 'none' document.body.appendChild(a) - a.href = import.meta.env.VITE_APP_BASE_API + '/sys/common' + url + a.href = import.meta.env.VITE_APP_BASE_API + '/sys/common/zuopin/' + url a.setAttribute('download', name); a.click() document.body.removeChild(a)