diff --git a/src/components/ShowFile/ShowFile.vue b/src/components/ShowFile/ShowFile.vue index fba52cd..6081d7d 100644 --- a/src/components/ShowFile/ShowFile.vue +++ b/src/components/ShowFile/ShowFile.vue @@ -1569,9 +1569,12 @@ export default { this.clientHeight / (clientWidth / this.gridColumnNum) ) - if (this.finished) { - let actualRows = Math.ceil(this.fileList.length / this.gridColumnNum) - this.gridMinHeight = actualRows * this.gridItemWidth + (actualRows - 1) * 10 + if (this.finished && this.pagination.pageIndex === 1) { + const actualRows = Math.ceil(this.fileList.length / this.gridColumnNum) + const gridMinHeight = actualRows * this.gridItemWidth + (actualRows - 1) * 10 + if (gridMinHeight < this.clientHeight) { + this.gridMinHeight = gridMinHeight + } } const lastPageSize = this.pagination.pageSize