From a716aa464b9db55741cafde7bbd8e88b7e6bf9e8 Mon Sep 17 00:00:00 2001 From: wyx <51903@qq.com> Date: Thu, 9 Mar 2023 22:13:53 +0800 Subject: [PATCH 1/4] =?UTF-8?q?fix:=E9=A1=B9=E7=9B=AE/=E8=B7=AF=E5=BE=84?= =?UTF-8?q?=E5=9B=BE/=E6=A8=A1=E6=9D=BF=E5=BA=93-=E5=85=B1=E4=BA=AB?= =?UTF-8?q?=E6=96=87=E6=A1=A3=E4=B8=8B=E8=BD=BD=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/learningpath/LevelAdd.vue | 1 - src/views/projectcenter/LibraryAdd.vue | 9 ++++++--- src/views/projectcenter/TaskPage.vue | 1 - 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/views/learningpath/LevelAdd.vue b/src/views/learningpath/LevelAdd.vue index 416444ed..05a030ea 100644 --- a/src/views/learningpath/LevelAdd.vue +++ b/src/views/learningpath/LevelAdd.vue @@ -2821,7 +2821,6 @@ export default { // 共享文档文件下载 const downloadFile = (url) => { - url && window.open(url); console.log(url); window.open( window.location.protocol + diff --git a/src/views/projectcenter/LibraryAdd.vue b/src/views/projectcenter/LibraryAdd.vue index c5843605..459a5bf2 100644 --- a/src/views/projectcenter/LibraryAdd.vue +++ b/src/views/projectcenter/LibraryAdd.vue @@ -1389,9 +1389,12 @@ export default defineComponent({ // 共享文档文件下载 const downloadFile = (url) => { console.log(url) - if (url) { - window.open(url) - } + window.open( + window.location.protocol + + process.env.VUE_APP_BOE_API_URL + + process.env.VUE_APP_FILE_PATH + + url + ); // if(url){ // const filename = '操作指南' // const x = new XMLHttpRequest() diff --git a/src/views/projectcenter/TaskPage.vue b/src/views/projectcenter/TaskPage.vue index b69f529c..148612ac 100644 --- a/src/views/projectcenter/TaskPage.vue +++ b/src/views/projectcenter/TaskPage.vue @@ -4724,7 +4724,6 @@ export default { } // 共享文档文件下载 const downloadFile = (url) => { - url && window.open(url); console.log(url); window.open( window.location.protocol + From 762c3ada96ec416f578b737318166b4099e804b7 Mon Sep 17 00:00:00 2001 From: wyx <51903@qq.com> Date: Thu, 9 Mar 2023 22:56:42 +0800 Subject: [PATCH 2/4] =?UTF-8?q?fix:=E6=9F=A5=E7=9C=8B=E4=BD=9C=E4=B8=9A?= =?UTF-8?q?=EF=BC=8C=E4=BD=9C=E4=B8=9A=E9=99=84=E4=BB=B6=E5=90=8D=E5=AD=97?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/drawers/CheckWork.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/drawers/CheckWork.vue b/src/components/drawers/CheckWork.vue index 00200b2d..612b49f4 100644 --- a/src/components/drawers/CheckWork.vue +++ b/src/components/drawers/CheckWork.vue @@ -86,7 +86,7 @@