feat: 大屏
This commit is contained in:
@@ -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} 并存储到本地`)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user