浏览代码

点击退出登录报错(online兼容修复)

zhangdaiscott 2 年之前
父节点
当前提交
530d663407
共有 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', content as string);
+      return h('div', h('div', content as string));
     } else {
       return content;
     }