feat: 大屏
This commit is contained in:
@@ -65,11 +65,10 @@ async function appInit() {
|
||||
const isDark = urlParams.mode === 'dark'
|
||||
const themeName = isDark ? ThemeEnum.DARK : ThemeEnum.LIGHT
|
||||
|
||||
// 如果主题不同,则切换
|
||||
// 如果主题不同,则设置并持久化到localStorage
|
||||
if (designStore.themeName !== themeName) {
|
||||
designStore.darkTheme = isDark
|
||||
designStore.themeName = themeName
|
||||
console.log(`[GoView] iframe 模式:已设置主题为 ${urlParams.mode}`)
|
||||
designStore.setTheme(isDark)
|
||||
console.log(`[GoView] iframe 模式:已设置主题为 ${urlParams.mode} 并存储到本地`)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user