mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 03:01:12 +00:00
perf: 优化数据结构
This commit is contained in:
parent
195a305fc3
commit
3e44e584c0
@ -759,8 +759,11 @@ export default {
|
||||
}
|
||||
const dialog_id = Number(this.sendData[0].replace('d:', ''))
|
||||
this.$store.dispatch("openDialog", dialog_id).then(async () => {
|
||||
const type = this.sendType == 'word-chain' ? 'dialogDroupWordChain' : 'dialogGroupVote'
|
||||
this.$store.state[type] = {type: 'create', dialog_id: dialog_id}
|
||||
await new Promise(resolve => setTimeout(resolve, 300));
|
||||
requestAnimationFrame(_ => {
|
||||
const type = this.sendType == 'word-chain' ? 'dialogDroupWordChain' : 'dialogGroupVote'
|
||||
this.$store.state[type] = {type: 'create', dialog_id: dialog_id}
|
||||
})
|
||||
})
|
||||
resolve()
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user