mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-20 04:42:46 +08:00
hotfix
This commit is contained in:
@@ -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);
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user