mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2025-12-26 20:50:30 +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…
x
Reference in New Issue
Block a user