部分代码优化

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

View File

@ -119,6 +119,7 @@
大小:{{currentGallery.fileSize}} <br> 大小:{{currentGallery.fileSize}} <br>
分辨率:{{currentGallery.resolution}} <br> 分辨率:{{currentGallery.resolution}} <br>
链接:<a :href="currentGallery.link">link</a> <br> 链接:<a :href="currentGallery.link">link</a> <br>
下载链接:<a :href="currentGallery.download">link</a><br>
标签:{{currentGallery.tag === '' ? '无': currentGallery.tag}} <br> 标签:{{currentGallery.tag === '' ? '无': currentGallery.tag}} <br>
<span v-show="isLion"> <span v-show="isLion">
downloader:{{currentGallery.downloader}} downloader:{{currentGallery.downloader}}

View File

@ -250,7 +250,7 @@ const actions = {
ElMessage(res.data.data) ElMessage(res.data.data)
}) })
}, },
resetUndone(context) { resetUndone() {
axios.post(GalleryManageUrl + "/reset?AuthCode=big+lion").then((res) => { axios.post(GalleryManageUrl + "/reset?AuthCode=big+lion").then((res) => {
ElMessage(res.data.data) ElMessage(res.data.data)
}) })
@ -299,13 +299,16 @@ const mutations = {
break; break;
case "下载完成": case "下载完成":
task.progress = "下载完成" 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 = [] let links = []
for(let i=1; i<=task.pages; i++) for(let i=1; i<=task.pages; i++)
links.push(GalleryManageUrl + "/onlineImage/" + i + "?gid=" + task.gid); links.push(GalleryManageUrl + "/onlineImage/" + i + "?gid=" + task.gid);
task.images = links task.images = links
break; break;
case "压缩中":
task.progress = "压缩中"
break
} }
//处理时间戳 //处理时间戳