Vue3使用elementUI出现未注册错误
首先输入命令安装element-plus
控制台输入
npm install element-plus –save
其次在main.js中注册element-plus
import { createApp } from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
var app = createApp(App)
app.use(ElementPlus)
app.mount('#app')