mirror of
https://github.com/stardrophere/InsightRadar.git
synced 2026-06-06 01:57:51 +08:00
23 lines
466 B
TypeScript
23 lines
466 B
TypeScript
/**
|
|
* 应用入口:初始化 Vue、Pinia、路由、主题
|
|
*/
|
|
import './assets/main.css'
|
|
|
|
import { createApp } from 'vue'
|
|
|
|
import App from './App.vue'
|
|
import router from './router'
|
|
import { pinia } from './stores'
|
|
import { useThemeStore } from './stores/theme'
|
|
|
|
const app = createApp(App)
|
|
|
|
// 先挂载 Pinia,再初始化主题(依赖 Pinia)
|
|
app.use(pinia)
|
|
const themeStore = useThemeStore(pinia)
|
|
themeStore.initTheme()
|
|
|
|
app.use(router)
|
|
|
|
app.mount('#app')
|