mirror of
https://github.com/stardrophere/InsightRadar.git
synced 2026-06-06 03:07:50 +08:00
optimize+注释
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
/**
|
||||
* 应用入口:初始化 Vue、Pinia、路由、主题
|
||||
*/
|
||||
import './assets/main.css'
|
||||
|
||||
import { createApp } from 'vue'
|
||||
@@ -9,6 +12,7 @@ import { useThemeStore } from './stores/theme'
|
||||
|
||||
const app = createApp(App)
|
||||
|
||||
// 先挂载 Pinia,再初始化主题(依赖 Pinia)
|
||||
app.use(pinia)
|
||||
const themeStore = useThemeStore(pinia)
|
||||
themeStore.initTheme()
|
||||
|
||||
Reference in New Issue
Block a user