mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-06-17 21:50:35 +08:00
feat: 在组件挂载时同步主题定制器状态,确保全局 FAB 预留右侧空间
This commit is contained in:
@@ -61,6 +61,8 @@ function handleGlobalKeydown(event: KeyboardEvent) {
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
// 面板一挂载就代表已打开,及时同步根节点状态让全局 FAB 预留右侧空间。
|
||||
syncThemeCustomizerOpenState(true)
|
||||
window.addEventListener('keydown', handleGlobalKeydown)
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user