mirror of
https://github.com/pompurin404/mihomo-party.git
synced 2024-11-15 19:22:31 +08:00
parent
9a860cbe94
commit
8abfeb1213
|
@ -105,7 +105,9 @@ export const BaseEditor: React.FC<Props> = (props) => {
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
window.onresize = (): void => {
|
window.onresize = (): void => {
|
||||||
editorRef.current?.layout()
|
setTimeout(() => {
|
||||||
|
editorRef.current?.layout()
|
||||||
|
}, 0)
|
||||||
}
|
}
|
||||||
return (): void => {
|
return (): void => {
|
||||||
window.onresize = null
|
window.onresize = null
|
||||||
|
|
Loading…
Reference in New Issue
Block a user