提交时增加加载状态控制

This commit is contained in:
daihh
2022-09-08 12:48:21 +08:00
parent 73f3fd43fb
commit f1e285f149
2 changed files with 4 additions and 1 deletions

View File

@@ -330,6 +330,7 @@ export default {
pass: this.auditInfo.pass,//Boolean 是否通过,
remark: this.auditInfo.remark// 备注
}
this.btnLoading=true;
if(flag){
apiCourse.auditAndPublish(params).then(res=>{
if(res.status === 200) {
@@ -340,6 +341,7 @@ export default {
}else{
this.$message.error(res.message);
}
this.btnLoading=false;
})
}else{
apiCourse.audit(params).then(res=>{
@@ -351,6 +353,7 @@ export default {
}else{
this.$message.error(res.message);
}
this.btnLoading=false;
})
}