修复本子名带#号时无法下载的问题。禁止标签带#号。(同步更新)
This commit is contained in:
parent
8c8945ae88
commit
76b4179ace
@ -350,7 +350,7 @@ function completeQueryTag(keyWord, cb) {
|
|||||||
result.push({value: tag.tag, tid: tag.id})
|
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})
|
result.push({value: '新建 #' + keyWord + ' 标签?', tag:keyWord})
|
||||||
}
|
}
|
||||||
cb(result)
|
cb(result)
|
||||||
|
|||||||
@ -260,7 +260,7 @@ function querySimilarTag(keyWord, cb){
|
|||||||
result.push({value: tag.tag, tag:tag})
|
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}})
|
result.push({value: '新建 #' + keyWord + ' 标签?', tag:{tag:keyWord}})
|
||||||
cb(result)
|
cb(result)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -312,7 +312,7 @@ const mutations = {
|
|||||||
task.progress = "下载完成"
|
task.progress = "下载完成"
|
||||||
let tempLink
|
let tempLink
|
||||||
tempLink = task.link.replace("element-plus.org", "exhentai.org").replace("element.org", "e-hentai.org")
|
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;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user