diff --git a/components/message/index.tsx b/components/message/index.tsx index ed2f3b08f4..e0cf285cfe 100755 --- a/components/message/index.tsx +++ b/components/message/index.tsx @@ -72,13 +72,14 @@ function notice(args: ArgsProps): MessageType { return resolve(true); }; getMessageInstance((instance) => { + const iconNode = ; instance.notice({ key: target, duration, style: {}, content: (
- {args.icon ? args.icon : iconType ? : ''} + {args.icon ? args.icon : iconType ? iconNode : ''} {args.content}
),