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] =?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 +