Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug: fix https://github.com/siyuan-note/siyuan/issues/5988

Vanessaaa29fc044bf5
diff --git a/app/src/config/appearance.ts b/app/src/config/appearance.ts
index 1f2a465f00..d0549c59d3 100644
--- a/app/src/config/appearance.ts
+++ b/app/src/config/appearance.ts
@@ -232,7 +232,14 @@ export const appearance = {
nativeEmoji: (appearance.element.querySelector("#nativeEmoji") as HTMLInputElement).checked,
hideStatusBar: (appearance.element.querySelector("#hideStatusBar") as HTMLInputElement).checked,
}, response => {
- if ((window.siyuan.config.appearance.themeJS && !response.data.modeOS && response.data.mode !== window.siyuan.config.appearance.mode) ||
+ if ((
+ window.siyuan.config.appearance.themeJS && !response.data.modeOS &&
+ (
+ response.data.mode !== window.siyuan.config.appearance.mode ||
+ window.siyuan.config.appearance.themeLight !== response.data.themeLight ||
+ window.siyuan.config.appearance.themeDark !== response.data.themeDark
+ )
+ ) ||
(response.data.modeOS && !window.siyuan.config.appearance.modeOS)
) {
exportLayout(true);