feat: new

This commit is contained in:
ex_zhangwenlei@exiot.cmcc
2024-01-06 00:53:50 +08:00
parent f66a1d2ae9
commit 4076bbe72e
27 changed files with 1094 additions and 158 deletions

View File

@@ -1,4 +1,18 @@
<script setup lang="ts"></script>
<script setup lang="ts">
import { onMounted } from 'vue'
import useStore from '@/store'
import { themeChange } from 'theme-change'
const globalConfig = useStore().globalConfig
const { getTheme: localTheme } = globalConfig
const setLocalTheme=(theme: any)=>{
themeChange(theme.name)
}
onMounted(() => {
setLocalTheme(localTheme)
})
</script>
<template>
<router-view></router-view>