diff --git a/src/components/DashBoard.vue b/src/components/DashBoard.vue index 241730c..57acb58 100644 --- a/src/components/DashBoard.vue +++ b/src/components/DashBoard.vue @@ -51,9 +51,9 @@ 下载 - 在线看 - 查看预览 - 删除 + 在线预览 + 查看封面图 + 删除 @@ -250,8 +250,8 @@ function coverLink(rawLink){ } //在线阅读以及展示缩略图 -function onlineGalleryReader(name){ - window.open("http://zfile.lionwebsite.xyz/1/gallery/" + encodeURI(name)) +function onlineGalleryReader(gid){ + store.dispatch("queryOnlineLinks", gid) } function showThumbnailGallery(gallery){ store.commit("_changeThumbnailGallery", gallery) diff --git a/src/components/Side.vue b/src/components/Side.vue index beb5713..41af7c6 100644 --- a/src/components/Side.vue +++ b/src/components/Side.vue @@ -314,8 +314,7 @@ function shareGallery(data){ axios.post("http://downloader.lionwebsite.xyz/GalleryManage/share?userId=3&expireHour=3&gid=" + gid).then((res) => { if(res.data.result === "success"){ let data = JSON.parse(res.data.data) - link = 'http://lionwebsite.xyz/GetFile/{1}?ShareCode={2}'.replace("{1}", shortName).replace("{2}", data.shareCode) - console.log(data) + link = 'http://lionwebsite.xyz/GetFile/{0}?ShareCode={1}'.replace('{0}', encodeURIComponent(shortName)).replace('{1}', data.shareCode) ElMessage({dangerouslyUseHTMLString: true, message: "分享成功, 过期时间:" + data.expireTime + "
链接", duration: 0, @@ -330,7 +329,7 @@ function shareGallery(data){ //显示缩略图 function showThumbnail(gallery){ - if(gallery.download !== undefined) + if(gallery.download !== undefined && gallery.status === "下载完成") clearTimeout(debounceTimer) debounceTimer = setTimeout(() => { store.commit("_changeThumbnailGallery", gallery)