fix(?): SplitJS init after React Component inited

This commit is contained in:
CrescentLeaf
2025-09-06 23:27:22 +08:00
parent d0c9465498
commit e4a0094b3e
2 changed files with 28 additions and 13 deletions

View File

@@ -124,14 +124,6 @@
}
window.addEventListener('resize', onResize)
onResize()
window.addEventListener('load', () => {
Split(['#SideBar', '#ChatFragment'], {
sizes: [25, 75],
minSize: [200, 400],
gutterSize: 2,
})
})
</script>
</body>