feat: new
This commit is contained in:
16
src/App.vue
16
src/App.vue
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user