优化列表

This commit is contained in:
2025-10-20 16:14:59 +08:00
parent 1b45e61daf
commit 0cddf99456
4 changed files with 96 additions and 60 deletions

View File

@@ -2,6 +2,7 @@ import { createApp } from 'vue';
import { createRouter, createWebHistory } from 'vue-router';
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'; // 导入 Element Plus 中文语言包
import App from './App.vue';
import Home from './components/Home.vue';
@@ -47,8 +48,8 @@ router.beforeEach((to, from, next) => {
// 创建Vue应用实例
const app = createApp(App);
// 使用Element Plus组件库
app.use(ElementPlus);
// 全局配置 Element Plus 为中文
app.use(ElementPlus, { locale: zhCn });
// 使用路由
app.use(router);