1.el-button 添加:loading="btnLoading"
<el-button class="confirm-btns" size="mini" type="primary" :loading="btnLoading" @click.native="realCompleteCargo">确定</el-button>
2.data定义
btnLoading: false
3.调接口时
this.btnLoading = true
1.el-button 添加:loading="btnLoading"
<el-button class="confirm-btns" size="mini" type="primary" :loading="btnLoading" @click.native="realCompleteCargo">确定</el-button>
2.data定义
btnLoading: false
3.调接口时
this.btnLoading = true