From 4089341073e32cc9bcd37528d6c5494996896dc7 Mon Sep 17 00:00:00 2001 From: chuzhongzai Date: Sun, 10 Sep 2023 13:04:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BC=A9=E7=95=A5=E5=9B=BE?= =?UTF-8?q?=E9=A2=84=E8=A7=88;=E4=BC=98=E5=8C=96=E4=B8=8B=E8=BD=BD?= =?UTF-8?q?=E9=93=BE=E6=8E=A5;(=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/components/DashBoard.vue | 6 ++++-- src/store/index.js | 6 +++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/components/DashBoard.vue b/src/components/DashBoard.vue index 164b138..b8994af 100644 --- a/src/components/DashBoard.vue +++ b/src/components/DashBoard.vue @@ -40,13 +40,13 @@ 查看标签
重置任务 -
+
{{thumbnailGallery.shortName}}
标签:{{thumbnailGallery.tag}}

-
@@ -232,6 +232,8 @@ let tags = computed(() => { }) let thumbnailGallery = computed(() => { + if(store.state.thumbnailGallery.images === undefined) + store.state.thumbnailGallery.images = [] return store.state.thumbnailGallery }) diff --git a/src/store/index.js b/src/store/index.js index a9d6a96..69c96f7 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -293,7 +293,7 @@ const mutations = { break; case "下载完成": task.progress = "下载完成" - task.download = GalleryManageUrl + "/file/" + encodeURI(task.name) + ".zip?AuthCode=" + state.AuthCode + task.download = GalleryManageUrl + "/file/" + encodeURI(task.name) + ".zip?AuthCode=" + state.AuthCode + "&gid=" + task.gid let links = [] for(let i=1; i<=task.pages; i++) links.push(GalleryManageUrl + "/onlineImage/" + i + "?gid=" + task.gid); @@ -632,6 +632,10 @@ export default new vuex.Store({ }) function getShortname(name){ + if(name === null){ + console.log(name) + return null + } if (name.includes("[")) { let lastIndex = name.lastIndexOf("[") name = name.substring(0, lastIndex)