This commit is contained in:
zhongluofeng
2026-07-30 09:09:29 +08:00
parent 74902c4cec
commit f452322aad
32 changed files with 4586 additions and 115 deletions
+8
View File
@@ -391,6 +391,14 @@ export const useAppStore = defineStore('app', () => {
} catch (e) {
// 非 Tauri 环境下忽略
}
// 切换效果后修复 snap-layout 子窗口背景(clearEffects 触发重绘会导致白色背景显现)
try {
const { invoke } = await import('@tauri-apps/api/core')
invoke('fix_snap_background').catch(() => {})
} catch {
/* 非 Tauri 环境忽略 */
}
}
// 系统主题变化时,若当前为"跟随系统"模式,同步更新 DOM 和窗口效果。