1、安装elementplugs
npm install element-plus --save
2,引用
import { createApp,Vue } from 'vue' //**
import ElementPlus from 'element-plus' //**
import 'element-plus/lib/theme-chalk/index.css' //**
import App from './App.vue'
import router from './router'
import store from './store'
createApp(App).use(ElementPlus).use(store).use(router).mount('#app')
标星是要引入的,其他的是我项目需要的
而且需要映入elementui