From d59a7ef8fc48f59a1c6b579cb31fdee9110fb994 Mon Sep 17 00:00:00 2001 From: lau <1807121535@qq.com> Date: Wed, 25 Jun 2025 09:16:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dsettings=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E9=BB=98=E8=AE=A4=E6=9A=97=E9=BB=91=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?=E4=B8=8D=E7=94=9F=E6=95=88=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/Settings/index.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/layout/components/Settings/index.vue b/src/layout/components/Settings/index.vue index bbd53cb..cfa2071 100644 --- a/src/layout/components/Settings/index.vue +++ b/src/layout/components/Settings/index.vue @@ -120,6 +120,9 @@ const isDark = useDark({ valueDark: 'dark', valueLight: 'light' }); +onMounted(() => { + isDark.value = settingsStore.dark; +}); // 匹配菜单颜色 watch(isDark, () => { if (isDark.value) { -- Gitee