Skip to content

Commit 03e4749

Browse files
authored
Merge pull request #153 from jamebal/dev
fix: 修复更改排序方式后不会自动刷新
2 parents 6778789 + 60a468a commit 03e4749

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/ShowFile/ShowFile.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -1530,6 +1530,7 @@ export default {
15301530
const container = document.querySelector('.dashboard-container')
15311531
let clientWidth = container.clientWidth
15321532
this.clientHeight = document.documentElement.clientHeight - this.lessClientHeight
1533+
console.log('containerResize', clientWidth, this.clientHeight)
15331534
this.gridItemWidth = 125
15341535
if (this.queryFileType === 'image') {
15351536
this.gridItemWidth = 165
@@ -1553,7 +1554,6 @@ export default {
15531554
}
15541555
this.getFileList()
15551556
}
1556-
15571557
// 使列表可拖拽
15581558
this.rowDrop()
15591559
this.darwRectangle()
@@ -3047,7 +3047,7 @@ export default {
30473047
if (this.listModeSearch) {
30483048
this.searchFile(this.searchFileName)
30493049
} else {
3050-
this.containerResize()
3050+
this.getFileList()
30513051
}
30523052
}
30533053
},

0 commit comments

Comments
 (0)