修复缩略图预览;优化下载链接;(同步更新)
This commit is contained in:
+5
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user