소스 검색

弹窗样式问题

zhangdaiscott 2 년 전
부모
커밋
3ecae67e48
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;
     }