因为Element-Plus框架默认显示的是英文版,需要修改语言配置
接下来是效果图
配置在src文件夹下的main.js文件
import { createApp } from "vue";
import App from "./App.vue";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import 'dayjs/locale/zh-cn';
import locale from "element-plus/lib/locale/lang/zh-cn";
createApp(App).use(ElementPlus, { locale }).mount("#app");
接下来的一步非常重要!!!!!!!!!!!!
这个引入的名字千万千万要是 locale,因为差一个字母就没有中文效果,也是困扰了题主好几个小时没想明白 可能因为功力不够