refactor: v2

backend & frontend
This commit is contained in:
2026-01-01 18:38:21 +08:00
parent 3d201bc497
commit fdc725b893
109 changed files with 22918 additions and 1135 deletions
+54
View File
@@ -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')