optimize+注释

This commit is contained in:
stardrophere
2026-03-13 23:48:49 +08:00
parent 6aee65af6c
commit da00ebb8f2
41 changed files with 874 additions and 174 deletions
+4
View File
@@ -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()