update path
This commit is contained in:
@ -10,7 +10,7 @@ const root = ReactDOM.createRoot(
|
||||
);
|
||||
root.render(
|
||||
<React.StrictMode>
|
||||
<HashRouter basename="">
|
||||
<HashRouter basename="/">
|
||||
<App />
|
||||
</HashRouter>
|
||||
</React.StrictMode>
|
||||
|
||||
@ -120,10 +120,12 @@ function CodeEditor() {
|
||||
iframeRef.current?.contentWindow?.removeEventListener('mousemove', handleMouseMove);
|
||||
iframeRef.current?.contentWindow?.removeEventListener('mouseup', handleMouseUp);
|
||||
}
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [iframeRef.current])
|
||||
|
||||
useEffect(() => {
|
||||
getCode(url);
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [url])
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user