From c4a652e21e4c3e2ee6e86e04e46d5dccd579d584 Mon Sep 17 00:00:00 2001 From: Yanbowen <349952469@qq.com> Date: Wed, 10 Nov 2021 16:02:22 +0800 Subject: [PATCH] =?UTF-8?q?fix(projects):=20=E4=BF=AE=E5=A4=8D=E5=9C=A8?= =?UTF-8?q?=E6=9A=97=E9=BB=91=E6=A8=A1=E5=BC=8F=E4=B8=8B=E7=AC=AC=E4=B8=80?= =?UTF-8?q?=E6=AC=A1=E8=BF=9B=E5=85=A5=E7=BD=91=E9=A1=B5=E4=B8=8D=E4=BC=9A?= =?UTF-8?q?=E8=A7=A6=E5=8F=91=E6=9A=97=E9=BB=91=E6=A8=A1=E5=BC=8F=E7=9B=91?= =?UTF-8?q?=E5=90=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/AppProvider.vue | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/AppProvider.vue b/src/AppProvider.vue index 4a4d497f..6c7f8fc0 100644 --- a/src/AppProvider.vue +++ b/src/AppProvider.vue @@ -51,9 +51,15 @@ const primaryWithAlpha = computed(() => { }); // 操作系统的暗黑模式 -watch(osDark, newValue => { - handleDarkMode(newValue); -}); +watch( + osDark, + newValue => { + handleDarkMode(newValue); + }, + { + immediate: true + } +);