feat: 新增组件

This commit is contained in:
duanshuwen
2025-12-06 23:42:48 +08:00
parent 5dc7d73120
commit 0fe4dbe2ab
8 changed files with 293 additions and 328 deletions

View File

@@ -4,6 +4,9 @@ import { createPinia } from "pinia";
import router from "./router";
import App from "./App.vue";
import Layout from "./layout/index.vue";
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import locale from 'element-plus/es/locale/lang/zh-cn'
// 创建 Vue 应用实例
const app = createApp(App);
@@ -16,6 +19,9 @@ app.component('Layout', Layout);
// 使用 Vue Router
app.use(router);
app.use(ElementPlus, {
locale,
})
// 挂载应用到 DOM
app.mount("#app");