From 4a13279fe13ad1cf6736670f6d1c5c61c8cba59b Mon Sep 17 00:00:00 2001
From: VVT789 <sdxt_0802@163.com>
Date: 星期五, 18 四月 2025 12:41:11 +0800
Subject: [PATCH] Merge branch 'develop1.0' into wt_from_develop1.0

---
 zhitan-vue/src/layout/components/Settings/index.vue |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/zhitan-vue/src/layout/components/Settings/index.vue b/zhitan-vue/src/layout/components/Settings/index.vue
index 51b619d..e8b1fd1 100644
--- a/zhitan-vue/src/layout/components/Settings/index.vue
+++ b/zhitan-vue/src/layout/components/Settings/index.vue
@@ -134,6 +134,8 @@
 function handleTheme(val) {
   settingsStore.sideTheme = val
   sideTheme.value = val
+  // Update body class to match the theme
+  document.querySelector("body").className = val === 'theme-dark' ? "themeDark" : "themeLight"
 }
 function saveSetting() {
   proxy.$modal.loading("姝e湪淇濆瓨鍒版湰鍦帮紝璇风◢鍊�...")

--
Gitblit v1.9.3