插件安装下载:
vue2用npm install element-ui --save
vue3用npm install element-plus --save
之前装的elementui 但是使用的vue的脚手架搭建,引入有问题,
Uncaught TypeError: Cannot read properties of undefined (reading ‘prototype‘)
网上查询到vue2和vue3引入还是有一定的区别,于是使用命令
npm uninstall element-ui 卸载之前组件,从新安装element-plus 可以解决,如果想卸载vue组件使用命令:npm uninstall element-plus