登录界面已完成

This commit is contained in:
2026-02-06 15:07:55 +08:00
parent 5ac365b45e
commit 6e085185db
11 changed files with 1076 additions and 442 deletions

View File

@@ -1,22 +1,17 @@
import './assets/main.css'
import { createApp } from 'vue'
import App from './App.vue'
import router from './router' // 1. 导入我们创建的 router
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
const app = createApp(App)
app.use(ElementPlus, {
locale: zhCn,
})
// 注册所有图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
app.component(key, component)
}
app.use(ElementPlus)
app.use(router) // 2. 在这里使用 router
app.mount('#app')