1.使用npm安装 awesome
2.在main.js 中引入
import 'font-awesome/css/font-awesome.css'
3.在VUE中使用
<el-button type="primary" @click="sendCMD"><i class="fa fa-user"></i>Send</el-button>
4.效果图
1.使用npm安装 awesome
2.在main.js 中引入
import 'font-awesome/css/font-awesome.css'
3.在VUE中使用
<el-button type="primary" @click="sendCMD"><i class="fa fa-user"></i>Send</el-button>
4.效果图