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')
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()
}
}
},