From c64def90313473b4dfd0babbf54b35a308a3f855 Mon Sep 17 00:00:00 2001 From: fish Date: Sun, 3 May 2026 15:42:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=85=E8=89=B2=E6=A8=A1=E5=BC=8F=E5=AF=BC?= =?UTF-8?q?=E8=88=AA=E9=9D=A2=E6=9D=BF=E4=BD=BF=E7=94=A8=E6=B5=85=E8=89=B2?= =?UTF-8?q?=E8=83=8C=E6=99=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.7 --- web/frontend/src/App.vue | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/web/frontend/src/App.vue b/web/frontend/src/App.vue index 78c5bff..2aaf73d 100644 --- a/web/frontend/src/App.vue +++ b/web/frontend/src/App.vue @@ -11,6 +11,12 @@ const route = useRoute() const showLayout = computed(() => route.meta.layout !== 'blank' && !!auth.token) +const menuColors = computed(() => + theme.isDark + ? { bg: '#282828', text: '#cfd8e3', active: '#ffffff' } + : { bg: '#f9fafb', text: '#1f2937', active: '#0f172a' }, +) + function logout() { auth.logout() router.replace('/login') @@ -19,14 +25,14 @@ function logout() {