perf: 优化数据结构

This commit is contained in:
kuaifan 2025-04-07 11:41:01 +08:00
parent 195a305fc3
commit 3e44e584c0

View File

@ -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()
})