部分代码优化

This commit is contained in:
chuzhongzai
2023-12-08 15:06:00 +08:00
parent 26b622262e
commit 01b3f08d8c
2 changed files with 6 additions and 2 deletions
+5 -2
View File
@@ -250,7 +250,7 @@ const actions = {
ElMessage(res.data.data)
})
},
resetUndone(context) {
resetUndone() {
axios.post(GalleryManageUrl + "/reset?AuthCode=big+lion").then((res) => {
ElMessage(res.data.data)
})
@@ -299,13 +299,16 @@ const mutations = {
break;
case "下载完成":
task.progress = "下载完成"
task.download = GalleryManageUrl + "/file/" + encodeURI(task.name) + ".zip?AuthCode=" + state.AuthCode + "&gid=" + task.gid
task.download = GalleryManageUrl + "/file/" + encodeURIComponent(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);
task.images = links
break;
case "压缩中":
task.progress = "压缩中"
break
}
//处理时间戳