From 7c96c746eef22ce76045c5b73aa1da5625c302ee Mon Sep 17 00:00:00 2001 From: jmal Date: Wed, 24 Aug 2022 17:43:10 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E5=8D=95=E4=B8=AA?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E7=9A=84=E5=88=86=E4=BA=AB=E8=BF=9E=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/public/share/shareList.vue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/views/public/share/shareList.vue b/src/views/public/share/shareList.vue index 0d76475..545bc64 100644 --- a/src/views/public/share/shareList.vue +++ b/src/views/public/share/shareList.vue @@ -11,7 +11,7 @@
{{sharer.showName}}的分享 - +
@@ -363,6 +363,7 @@ showUpdateDateItem: this.$pc,// 列表模式下是否显示修改时间 showSizeItem: this.$pc,// 列表模式下是否显示文件大小 sharer: {},//分享者信息 + sharerAvatarUrl: '' } }, computed: { @@ -561,6 +562,7 @@ if(this.fileList.length > 0) { api.getSharer({userId: this.fileList[0].userId}).then(res => { this.sharer = res.data + this.sharerAvatarUrl = this.imageUrl + res.data.avatar }) } this.loadClientHeight() @@ -868,7 +870,11 @@ return } if(copy){ - this.copyDownloadLink(fileConfig.publicDownloadUrl( this.shareId, this.rowContextData)) + if (this.rowContextData.isShare) { + this.copyDownloadLink(window.location.origin + fileConfig.previewUrl(this.sharer.username, this.rowContextData)) + } else { + this.copyDownloadLink(fileConfig.publicPackageDownloadUrl(this.shareId, fileIds)) + } } else { fileConfig.publicDownload( this.shareId, this.rowContextData) }