修复缩略图预览;优化下载链接;(同步更新)

This commit is contained in:
chuzhongzai
2023-09-10 13:04:49 +08:00
parent 76d8b748ca
commit 4089341073
2 changed files with 9 additions and 3 deletions
+5 -1
View File
@@ -293,7 +293,7 @@ const mutations = {
break;
case "下载完成":
task.progress = "下载完成"
task.download = GalleryManageUrl + "/file/" + encodeURI(task.name) + ".zip?AuthCode=" + state.AuthCode
task.download = GalleryManageUrl + "/file/" + encodeURI(task.name) + ".zip?AuthCode=" + state.AuthCode + "&gid=" + task.gid
let links = []
for(let i=1; i<=task.pages; i++)
links.push(GalleryManageUrl + "/onlineImage/" + i + "?gid=" + task.gid);
@@ -632,6 +632,10 @@ export default new vuex.Store({
})
function getShortname(name){
if(name === null){
console.log(name)
return null
}
if (name.includes("[")) {
let lastIndex = name.lastIndexOf("[")
name = name.substring(0, lastIndex)