feat: 在组件挂载时同步主题定制器状态,确保全局 FAB 预留右侧空间

This commit is contained in:
jxxghp
2026-06-17 11:29:26 +08:00
parent 3abff72e25
commit 8868403ff3

View File

@@ -61,6 +61,8 @@ function handleGlobalKeydown(event: KeyboardEvent) {
}
onMounted(() => {
// 面板一挂载就代表已打开,及时同步根节点状态让全局 FAB 预留右侧空间。
syncThemeCustomizerOpenState(true)
window.addEventListener('keydown', handleGlobalKeydown)
})