From 9488107bf44d0c4da710511cf7af10402cf63a8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=B9=BFbe=20free?= Date: Sun, 3 Aug 2025 07:50:26 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=80=9A=E7=9F=A5=E6=8A=9B=E5=87=BApro?= =?UTF-8?q?mise?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/packages/notify/notify.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/packages/notify/notify.tsx b/src/packages/notify/notify.tsx index aacb7091a4..3ceb6406a6 100644 --- a/src/packages/notify/notify.tsx +++ b/src/packages/notify/notify.tsx @@ -35,8 +35,11 @@ function getInstance( function notice(opts: any) { opts = { ...options, ...opts } - getInstance(opts, (notification: any) => { - messageInstance = notification + return new Promise((resolve) => { + getInstance(opts, (notification: any) => { + messageInstance = notification + resolve() + }) }) }