1、首先安装element-plus
npm install element-plus --save
可以在package.json中检查是否安装成功
出现这一行就证明安装成功了...
2、修改main.js或main.ts文件
import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import ElementPlus from 'element-plus';
import 'element-plus/theme-chalk/index.css';
import locale from 'element-plus/lib/locale/lang/zh-cn'
createApp(App).use(store).use(router).use(ElementPlus, { locale }).mount("#app");