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 }