From 1549696042d02012bebb29f80e591c1d7948b0e8 Mon Sep 17 00:00:00 2001 From: chuzhongzai Date: Fri, 23 Jun 2023 20:58:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9C=AC=E5=AD=90=E5=90=8D?= =?UTF-8?q?=E5=B8=A6#=E5=8F=B7=E6=97=B6=E6=97=A0=E6=B3=95=E4=B8=8B?= =?UTF-8?q?=E8=BD=BD=E7=9A=84=E9=97=AE=E9=A2=98=E3=80=82=E7=A6=81=E6=AD=A2?= =?UTF-8?q?=E6=A0=87=E7=AD=BE=E5=B8=A6#=E5=8F=B7=E3=80=82=EF=BC=88?= =?UTF-8?q?=E5=90=8C=E6=AD=A5=E6=9B=B4=E6=96=B0=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/DashBoard.vue | 2 +- src/components/Side.vue | 2 +- src/store/index.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/DashBoard.vue b/src/components/DashBoard.vue index 5bcbb55..2abb995 100644 --- a/src/components/DashBoard.vue +++ b/src/components/DashBoard.vue @@ -346,7 +346,7 @@ function completeQueryTag(keyWord, cb) { result.push({value: tag.tag, tid: tag.id}) } }) - if(result.length === 0 && chosenGallery.value.gid !== undefined && !hit){ //未命中结果并且准备与下载任务一并提交 + if(result.length === 0 && !keyWord.includes("#") && chosenGallery.value.gid !== undefined && !hit){ //未命中结果并且准备与下载任务一并提交 result.push({value: '新建 #' + keyWord + ' 标签?', tag:keyWord}) } cb(result) diff --git a/src/components/Side.vue b/src/components/Side.vue index 47786bd..1a56907 100644 --- a/src/components/Side.vue +++ b/src/components/Side.vue @@ -275,7 +275,7 @@ function querySimilarTag(keyWord, cb){ result.push({value: tag.tag, tag:tag}) } - if(keyWord.trim() !== '' && !hit && !keyWord.includes("?") && result.length === 0) + if(keyWord.trim() !== '' && !keyWord.includes("#") && !hit && !keyWord.includes("?") && result.length === 0) result.push({value: '新建 #' + keyWord + ' 标签?', tag:{tag:keyWord}}) cb(result) } diff --git a/src/store/index.js b/src/store/index.js index 7679020..e9010a8 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -316,7 +316,7 @@ const mutations = { task.progress = "下载完成" let tempLink tempLink = task.link.replace("element-plus.org", "exhentai.org").replace("element.org", "e-hentai.org") - task.download = GalleryManageUrl + "/file/" + encodeURI(task.name) + "?link=" + tempLink + "&AuthCode=" + state.AuthCode + task.download = GalleryManageUrl + "/file/" + encodeURI(task.name.replace("#", "")) + "?link=" + tempLink + "&AuthCode=" + state.AuthCode break; }