修复本子名带#号时无法下载的问题。禁止标签带#号。(同步更新)
This commit is contained in:
parent
b27530657b
commit
1549696042
@ -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)
|
||||
|
||||
@ -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)
|
||||
}
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user