优化用户保存时候的用户名重复的校验

This commit is contained in:
季圣华 2022-07-04 23:04:13 +08:00
parent dc479b91ec
commit 3197598b32

View File

@ -159,14 +159,13 @@
obj.then((res)=>{ obj.then((res)=>{
if(res.code === 200){ if(res.code === 200){
that.$emit('ok'); that.$emit('ok');
that.close();
}else{ }else{
that.$message.warning(res.data.message); that.$message.warning(res.data.message);
} }
}).finally(() => { }).finally(() => {
that.confirmLoading = false; that.confirmLoading = false;
that.close();
}) })
} }
}) })
}, },