修复本子名带#号时无法下载的问题。禁止标签带#号。(同步更新)

This commit is contained in:
chuzhongzai 2023-06-23 20:58:57 +08:00
parent 8c8945ae88
commit 76b4179ace
3 changed files with 3 additions and 3 deletions

View File

@ -350,7 +350,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)

View File

@ -260,7 +260,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)
}

View File

@ -312,7 +312,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;
}