This commit is contained in:
2025-08-24 10:41:24 +08:00
parent d2e3c70616
commit 01b2c3385d
7 changed files with 24 additions and 34 deletions

View File

@@ -6,6 +6,7 @@ import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import NProgress from 'nprogress'
import 'nprogress/nprogress.css'
import dayjs from 'dayjs'
import App from './App.vue'
import router from './router'
@@ -29,6 +30,9 @@ app.use(ElementPlus, {
locale: zhCn,
})
// 全局注册dayjs
app.config.globalProperties.$dayjs = dayjs
// 应用初始化后检查用户状态
app.mount('#app')