From 55ff4ad6155248a7c2f391fd4fe75682a311dac0 Mon Sep 17 00:00:00 2001
From: baoshiwei <baoshiwei@shlanbao.cn>
Date: 星期四, 24 七月 2025 16:54:26 +0800
Subject: [PATCH] refactor(svg): 优化 SVG相关组件功能

---
 zhitan-vue/src/App.vue |   24 +++++++++++-------------
 1 files changed, 11 insertions(+), 13 deletions(-)

diff --git a/zhitan-vue/src/App.vue b/zhitan-vue/src/App.vue
index 59e8fa6..2eff331 100644
--- a/zhitan-vue/src/App.vue
+++ b/zhitan-vue/src/App.vue
@@ -3,23 +3,21 @@
 </template>
 
 <script setup>
-// import Cookies from 'js-cookie'
-import useSettingsStore from '@/store/modules/settings'
-import { handleThemeStyle } from '@/utils/theme'
-// import { systemName } from '@/api/system/name'
+import Cookies from "js-cookie"
+import useSettingsStore from "@/store/modules/settings"
+import { handleThemeStyle } from "@/utils/theme"
+import { systemName } from "@/api/system/name"
 onMounted(() => {
   nextTick(() => {
     // 鍒濆鍖栦富棰樻牱寮�
     handleThemeStyle(useSettingsStore().theme)
-    document.querySelector('body').className = 'themeDark';
+    document.querySelector("body").className = "themeDark"
   })
-  // systemName().then(res => {
-  //   if (res.code == 200) {
-  //     sessionStorage.setItem('SystemInfo', JSON.stringify(res.data))
-  //     // sessionStorage.removeItem('SystemInfo')
-  //   }
-  // })
-
-
+  systemName().then((res) => {
+    if (res.code == 200) {
+      Cookies.set("SystemInfo", JSON.stringify(res.data))
+      // Cookies.remove('SystemInfo')
+    }
+  })
 })
 </script>

--
Gitblit v1.9.3