ustcyc
2025-01-08 e58b27d9b5b6b3d63267ca89d28ebe9d3363f94b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<template>
  <router-view />
</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'
onMounted(() => {
  nextTick(() => {
    // 初始化主题样式
    handleThemeStyle(useSettingsStore().theme)
    document.querySelector('body').className = 'themeDark';
  })
  // systemName().then(res => {
  //   if (res.code == 200) {
  //     sessionStorage.setItem('SystemInfo', JSON.stringify(res.data))
  //     // sessionStorage.removeItem('SystemInfo')
  //   }
  // })
 
 
})
</script>