From a2abfa2dbd6310a041e60bcc556910b07dd590a5 Mon Sep 17 00:00:00 2001 From: jmal Date: Sun, 5 Mar 2023 21:08:18 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E7=94=A8=E6=88=B7=E5=A4=B4=E5=83=8F?= =?UTF-8?q?=E5=9C=A8=E5=88=86=E4=BA=AB=E7=95=8C=E9=9D=A2=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E5=88=B0=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ShowFile/ShowFile.vue | 8 ++++++-- src/views/public/share/shareList.vue | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/components/ShowFile/ShowFile.vue b/src/components/ShowFile/ShowFile.vue index 7d57568..4c48e3a 100644 --- a/src/components/ShowFile/ShowFile.vue +++ b/src/components/ShowFile/ShowFile.vue @@ -862,10 +862,14 @@ export default { } if (this.vmode === 'list') { this.grid = false - this.lessClientHeight = 140 + if (!this.selectFile) { + this.lessClientHeight = 140 + } } else { this.grid = true - this.lessClientHeight = 106 + if (!this.selectFile) { + this.lessClientHeight = 106 + } this.containerResize() } // 加载url上的path diff --git a/src/views/public/share/shareList.vue b/src/views/public/share/shareList.vue index 688f8ae..708d71d 100644 --- a/src/views/public/share/shareList.vue +++ b/src/views/public/share/shareList.vue @@ -569,7 +569,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.sharerAvatarUrl = window.location.origin + this.imageUrl + res.data.avatar if (this.sharer.netdiskName) { this.netdiskName = this.sharer.netdiskName }