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

@@ -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} 并存储到本地`)
}
}