From b1bd4d8a34732efa9a6097eda6941b6d2ce68c4a Mon Sep 17 00:00:00 2001 From: chuzhongzai Date: Sun, 19 Feb 2023 22:36:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=88=86=E4=BA=AB=E9=93=BE?= =?UTF-8?q?=E6=8E=A5=E9=94=99=E8=AF=AF=EF=BC=8C=E4=BF=AE=E5=A4=8D=E5=9C=A8?= =?UTF-8?q?=E7=BA=BF=E9=A2=84=E8=A7=88=E6=8C=89=E9=92=AE=EF=BC=88=E5=90=8C?= =?UTF-8?q?=E6=AD=A5=E6=9B=B4=E6=96=B0=EF=BC=89=E3=80=82=E5=B0=9D=E8=AF=95?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=BC=A9=E7=95=A5=E5=9B=BE=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/DashBoard.vue | 10 +++++----- src/components/Side.vue | 5 ++--- 2 files changed, 7 insertions(+), 8 deletions(-) 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)