feat: 大屏

This commit is contained in:
ygx
2025-12-23 01:06:06 +08:00
parent 593e7d90e5
commit d760e8f6cc
5 changed files with 21 additions and 11 deletions

View File

@@ -37,12 +37,11 @@ function autoSwitchThemeFromUrlMode(query: any) {
const isDark = mode === 'dark'
const themeName = isDark ? ThemeEnum.DARK : ThemeEnum.LIGHT
// 如果主题不同,则切换
// 如果主题不同,则设置并持久化到localStorage
if (designStore.themeName !== themeName) {
designStore.darkTheme = isDark
designStore.themeName = themeName
designStore.setTheme(isDark)
setHtmlTheme(themeName)
console.log(`[GoView] 已切换主题为 ${mode}`)
console.log(`[GoView] 已切换主题为 ${mode} 并存储到本地`)
}
}
}