mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 11:19:56 +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:', ''))
|
const dialog_id = Number(this.sendData[0].replace('d:', ''))
|
||||||
this.$store.dispatch("openDialog", dialog_id).then(async () => {
|
this.$store.dispatch("openDialog", dialog_id).then(async () => {
|
||||||
const type = this.sendType == 'word-chain' ? 'dialogDroupWordChain' : 'dialogGroupVote'
|
await new Promise(resolve => setTimeout(resolve, 300));
|
||||||
this.$store.state[type] = {type: 'create', dialog_id: dialog_id}
|
requestAnimationFrame(_ => {
|
||||||
|
const type = this.sendType == 'word-chain' ? 'dialogDroupWordChain' : 'dialogGroupVote'
|
||||||
|
this.$store.state[type] = {type: 'create', dialog_id: dialog_id}
|
||||||
|
})
|
||||||
})
|
})
|
||||||
resolve()
|
resolve()
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user