@click快速点击,发生多次触发
2.代码示例:
//html
<el-button :loading="submitLoading" type="primary" @click="submitForm">确 定</el-button>
data() {
return {
submitLoading:false,
}
}
//方法
/** 提交按钮 */
submitForm() {
this.submitLoading = true;
updateTenantPackage({}).then((response) => {
this.submitLoading = false;
this.getList();
});
return;
},