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; }