From 8fec44d0e90379066ca03b06c0438efddb10aa6c Mon Sep 17 00:00:00 2001 From: syuilo <4439005+syuilo@users.noreply.github.com> Date: Thu, 27 Nov 2025 13:00:11 +0900 Subject: [PATCH] refactor Fix #16872 --- packages/frontend/src/boot/common.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/frontend/src/boot/common.ts b/packages/frontend/src/boot/common.ts index 71fd9bb54a..2b522d3f10 100644 --- a/packages/frontend/src/boot/common.ts +++ b/packages/frontend/src/boot/common.ts @@ -178,16 +178,13 @@ export async function common(createVue: () => Promise>) { window.document.documentElement.dataset.colorScheme = store.s.darkMode ? 'dark' : 'light'; if (!isSafeMode) { - const darkTheme = prefer.model('darkTheme'); - const lightTheme = prefer.model('lightTheme'); - - watch(darkTheme, (theme) => { + watch(prefer.r.darkTheme, (theme) => { if (store.s.darkMode) { applyTheme(theme ?? defaultDarkTheme); } }); - watch(lightTheme, (theme) => { + watch(prefer.r.lightTheme, (theme) => { if (!store.s.darkMode) { applyTheme(theme ?? defaultLightTheme); }