diff --git a/src/components/ShowFile/ShowFile.vue b/src/components/ShowFile/ShowFile.vue index 26be6ed..9a92b45 100644 --- a/src/components/ShowFile/ShowFile.vue +++ b/src/components/ShowFile/ShowFile.vue @@ -1530,6 +1530,7 @@ export default { const container = document.querySelector('.dashboard-container') let clientWidth = container.clientWidth this.clientHeight = document.documentElement.clientHeight - this.lessClientHeight + console.log('containerResize', clientWidth, this.clientHeight) this.gridItemWidth = 125 if (this.queryFileType === 'image') { this.gridItemWidth = 165 @@ -1553,7 +1554,6 @@ export default { } this.getFileList() } - // 使列表可拖拽 this.rowDrop() this.darwRectangle() @@ -3047,7 +3047,7 @@ export default { if (this.listModeSearch) { this.searchFile(this.searchFileName) } else { - this.containerResize() + this.getFileList() } } },