Explorar o código

弹窗样式问题

zhangdaiscott %!s(int64=2) %!d(string=hai) anos
pai
achega
3ecae67e48
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/hooks/web/useMessage.ts

+ 1 - 1
src/hooks/web/useMessage.ts

@@ -54,7 +54,7 @@ function getIcon(iconType: string) {
 function renderContent({ content }: Pick<ModalOptionsEx, 'content'>) {
   try {
     if (isString(content)) {
-      return h('div', h('div', content as string));
+      return h('div', h('div', {'innerHTML':content as string}));
     } else {
       return content;
     }