2026-07-26 22:19:41 +08:00
|
|
|
import { createApp } from 'vue'
|
|
|
|
|
import { createPinia } from 'pinia'
|
|
|
|
|
import ElementPlus from 'element-plus'
|
|
|
|
|
import zhCn from 'element-plus/es/locale/lang/zh-cn'
|
|
|
|
|
import 'element-plus/dist/index.css'
|
|
|
|
|
import 'element-plus/theme-chalk/dark/css-vars.css'
|
|
|
|
|
|
|
|
|
|
import App from './App.vue'
|
|
|
|
|
import router from './router'
|
2026-07-26 23:15:02 +08:00
|
|
|
import { initTheme } from './composables/useTheme'
|
2026-07-26 22:19:41 +08:00
|
|
|
import './assets/main.css'
|
2026-09-12 20:31:55 +08:00
|
|
|
// 皮肤样式放在最后,才能压过 Element Plus 与基础样式里的变量
|
|
|
|
|
import './assets/theme-paranoia.css'
|
2026-07-26 22:19:41 +08:00
|
|
|
|
2026-07-26 23:15:02 +08:00
|
|
|
// 挂载前先定好主题,避免登录页闪一下白底
|
|
|
|
|
initTheme()
|
|
|
|
|
|
2026-07-26 22:19:41 +08:00
|
|
|
const app = createApp(App)
|
|
|
|
|
app.use(createPinia())
|
|
|
|
|
app.use(router)
|
|
|
|
|
app.use(ElementPlus, { locale: zhCn })
|
|
|
|
|
app.mount('#app')
|