From 3e44e584c0a0b47241b35724ec170f5c23aae05d Mon Sep 17 00:00:00 2001 From: kuaifan Date: Mon, 7 Apr 2025 11:41:01 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/assets/js/pages/manage/application.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/resources/assets/js/pages/manage/application.vue b/resources/assets/js/pages/manage/application.vue index d67b16fa0..c04a92aca 100644 --- a/resources/assets/js/pages/manage/application.vue +++ b/resources/assets/js/pages/manage/application.vue @@ -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() })