mirror of
https://github.com/Cccc-owo/CheckInApp.git
synced 2026-10-25 03:01:15 +08:00
refactor: v2
backend & frontend
This commit is contained in:
@@ -0,0 +1,54 @@
|
||||
import { createApp } from 'vue'
|
||||
import { createPinia } from 'pinia'
|
||||
import ElementPlus from 'element-plus'
|
||||
import 'element-plus/dist/index.css'
|
||||
import zhCn from 'element-plus/es/locale/lang/zh-cn'
|
||||
import {
|
||||
User,
|
||||
Key,
|
||||
Calendar,
|
||||
Refresh,
|
||||
Document,
|
||||
List,
|
||||
Plus,
|
||||
UserFilled,
|
||||
DataAnalysis,
|
||||
Loading,
|
||||
SuccessFilled,
|
||||
WarningFilled,
|
||||
CircleCloseFilled
|
||||
} from '@element-plus/icons-vue'
|
||||
|
||||
import App from './App.vue'
|
||||
import router from './router'
|
||||
import './style.css'
|
||||
|
||||
const app = createApp(App)
|
||||
const pinia = createPinia()
|
||||
|
||||
// 按需注册 Element Plus 图标(仅注册使用的13个)
|
||||
const icons = {
|
||||
User,
|
||||
Key,
|
||||
Calendar,
|
||||
Refresh,
|
||||
Document,
|
||||
List,
|
||||
Plus,
|
||||
UserFilled,
|
||||
DataAnalysis,
|
||||
Loading,
|
||||
SuccessFilled,
|
||||
WarningFilled,
|
||||
CircleCloseFilled
|
||||
}
|
||||
|
||||
for (const [key, component] of Object.entries(icons)) {
|
||||
app.component(key, component)
|
||||
}
|
||||
|
||||
app.use(pinia)
|
||||
app.use(router)
|
||||
app.use(ElementPlus, { locale: zhCn })
|
||||
|
||||
app.mount('#app')
|
||||
Reference in New Issue
Block a user