部分代码优化
This commit is contained in:
parent
26b622262e
commit
01b3f08d8c
@ -119,6 +119,7 @@
|
||||
大小:{{currentGallery.fileSize}} <br>
|
||||
分辨率:{{currentGallery.resolution}} <br>
|
||||
链接:<a :href="currentGallery.link">link</a> <br>
|
||||
下载链接:<a :href="currentGallery.download">link</a><br>
|
||||
标签:{{currentGallery.tag === '' ? '无': currentGallery.tag}} <br>
|
||||
<span v-show="isLion">
|
||||
downloader:{{currentGallery.downloader}}
|
||||
|
||||
@ -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
|
||||
}
|
||||
|
||||
//处理时间戳
|
||||
|
||||
Loading…
Reference in New Issue
Block a user