diff --git a/src/components/base/base-notice.tsx b/src/components/base/base-notice.tsx index 7729ba34d9..33d7affc6c 100644 --- a/src/components/base/base-notice.tsx +++ b/src/components/base/base-notice.tsx @@ -86,7 +86,9 @@ const Notice: NoticeInstance = (props) => { }; (["info", "error", "success"] as const).forEach((type) => { - Notice[type] = (message, duration) => Notice({ type, message, duration }); + Notice[type] = (message, duration) => { + setTimeout(() => Notice({ type, message, duration }), 0); + }; }); export default Notice;