lloydzhou 1 年之前
父节点
当前提交
1ecefd88f7
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/components/markdown.tsx

+ 1 - 1
app/components/markdown.tsx

@@ -62,7 +62,7 @@ export function Mermaid(props: { code: string }) {
 }
 }
 
 
 export function HTMLPreview(props: { code: string }) {
 export function HTMLPreview(props: { code: string }) {
-  const ref = useRef<HTMLDivElement>(null);
+  const ref = useRef<HTMLIFrameElement>(null);
   const frameId = useRef<string>(nanoid());
   const frameId = useRef<string>(nanoid());
   const [height, setHeight] = useState(600);
   const [height, setHeight] = useState(600);
   /*
   /*