Merge pull request #153 from jamebal/dev

fix: 修复更改排序方式后不会自动刷新
This commit is contained in:
jmal 2024-06-03 17:11:06 +08:00 committed by GitHub
commit 03e4749238
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1530,6 +1530,7 @@ export default {
const container = document.querySelector('.dashboard-container') const container = document.querySelector('.dashboard-container')
let clientWidth = container.clientWidth let clientWidth = container.clientWidth
this.clientHeight = document.documentElement.clientHeight - this.lessClientHeight this.clientHeight = document.documentElement.clientHeight - this.lessClientHeight
console.log('containerResize', clientWidth, this.clientHeight)
this.gridItemWidth = 125 this.gridItemWidth = 125
if (this.queryFileType === 'image') { if (this.queryFileType === 'image') {
this.gridItemWidth = 165 this.gridItemWidth = 165
@ -1553,7 +1554,6 @@ export default {
} }
this.getFileList() this.getFileList()
} }
// 使列表可拖拽 // 使列表可拖拽
this.rowDrop() this.rowDrop()
this.darwRectangle() this.darwRectangle()
@ -3047,7 +3047,7 @@ export default {
if (this.listModeSearch) { if (this.listModeSearch) {
this.searchFile(this.searchFileName) this.searchFile(this.searchFileName)
} else { } else {
this.containerResize() this.getFileList()
} }
} }
}, },