fix:改造时调整rowDrop触发时机

This commit is contained in:
buvta
2020-12-13 15:38:36 +08:00
parent 2a05b2abdb
commit b1b4e61244
2 changed files with 2 additions and 2 deletions

View File

@@ -314,6 +314,7 @@ export default {
})
},
updateViewMode () {
if (this.setting.historyViewMode === 'table') setTimeout(() => { this.rowDrop() }, 100)
setTimeout(() => { if (this.$refs.historyWaterfall) this.$refs.historyWaterfall.refresh() }, 1000)
setting.find().then(res => {
res.historyViewMode = this.setting.historyViewMode
@@ -322,7 +323,6 @@ export default {
}
},
mounted () {
this.rowDrop()
window.addEventListener('resize', () => { }, true)
},
created () {

View File

@@ -463,6 +463,7 @@ export default {
})
},
updateViewMode () {
if (this.setting.starViewMode === 'table') setTimeout(() => { this.rowDrop() }, 100)
setTimeout(() => { if (this.$refs.starWaterfall) this.$refs.starWaterfall.refresh() }, 1000)
setting.find().then(res => {
res.starViewMode = this.setting.starViewMode
@@ -474,7 +475,6 @@ export default {
this.getFavorites()
},
mounted () {
this.rowDrop()
window.addEventListener('resize', () => { }, true)
}
}