From 0f428a4b91f0ddbfd799a2cebc23f88e6d86c800 Mon Sep 17 00:00:00 2001 From: JayChou Date: Thu, 28 Nov 2024 15:48:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=AF=94=E8=B5=9B=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/raceInfo/index.vue | 55 +++++++++++----------- src/views/userInfo/components/reacList.vue | 9 +--- 2 files changed, 29 insertions(+), 35 deletions(-) diff --git a/src/views/raceInfo/index.vue b/src/views/raceInfo/index.vue index edeecb3..6a66971 100644 --- a/src/views/raceInfo/index.vue +++ b/src/views/raceInfo/index.vue @@ -1,32 +1,7 @@ diff --git a/src/views/userInfo/components/reacList.vue b/src/views/userInfo/components/reacList.vue index be03c43..6c95082 100644 --- a/src/views/userInfo/components/reacList.vue +++ b/src/views/userInfo/components/reacList.vue @@ -150,14 +150,7 @@ const headerChange = (pageNumber: any) => { } // 下载文件 const download = (url: any,fileName:any) => { - console.log(url); - - const a = document.createElement('a') - a.href = url - a.download = fileName; - document.body.appendChild(a) - a.click() - document.body.removeChild(a); + window.open(url) }