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