From 3ecae67e486919338c6b695fe4181b096eda123e Mon Sep 17 00:00:00 2001 From: zhangdaiscott Date: Fri, 23 Sep 2022 16:43:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=B9=E7=AA=97=E6=A0=B7=E5=BC=8F=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hooks/web/useMessage.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/web/useMessage.ts b/src/hooks/web/useMessage.ts index 3a3dbbc..4378086 100644 --- a/src/hooks/web/useMessage.ts +++ b/src/hooks/web/useMessage.ts @@ -54,7 +54,7 @@ function getIcon(iconType: string) { function renderContent({ content }: Pick) { try { if (isString(content)) { - return h('div', h('div', content as string)); + return h('div', h('div', {'innerHTML':content as string})); } else { return content; }