From 3d57901ea5c0d9f05647a412ea8a088c10b1fdad Mon Sep 17 00:00:00 2001 From: chuzhongzai Date: Sat, 8 Oct 2022 22:54:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=8B=E8=BD=BD=E8=B7=AF?= =?UTF-8?q?=E5=BE=84=E4=BD=BF=E5=85=B6=E6=B5=8F=E8=A7=88=E5=99=A8=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E6=98=BE=E7=A4=BA=E4=B8=8B=E8=BD=BD=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=90=8D(=E5=90=8C=E6=AD=A5=E6=9B=B4=E6=96=B0)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/index.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/store/index.js b/src/store/index.js index 1f41dd7..e3b84a5 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -204,7 +204,6 @@ const mutations = { state.totalVideoTask.splice(0) }, _updateGalleryTasks(state, tasks){ - const downloadUrl = GalleryTaskHandlerUrl + "file?link=" tasks.forEach((task) => { if(task.status === "已提交"){ task.progress = "已提交" @@ -221,7 +220,7 @@ const mutations = { if(url.host === mask['raw']) tempLink = task.link.replace(mask['raw'], mask['mask']) }) - task.download = downloadUrl + tempLink + "&AuthCode=" + state.AuthCode + task.download = GalleryTaskHandlerUrl + "file/" + encodeURI(task.name) + "?link=" + tempLink + "&AuthCode=" + state.AuthCode } state.totalGalleryTask.push(task) }) @@ -231,7 +230,6 @@ const mutations = { } }, _updateVideoTasks(state, tasks){ - const downloadUrl = VideoTaskHandlerUrl + "file?link=" tasks.forEach((task) => { task.progress = task.status if(task.status === "下载完成"){ @@ -242,7 +240,7 @@ const mutations = { if(url.host === mask['raw']) tempLink = task.link.replace(mask['raw'], mask['mask']) }) - task.download = downloadUrl + tempLink + "&AuthCode=" + state.AuthCode + task.download = VideoTaskHandlerUrl + "file/" + encodeURI(task.name) + "?link=" + tempLink + "&AuthCode=" + state.AuthCode } state.totalVideoTask.push(task) })