|
@@ -277,7 +277,7 @@ export default {
|
|
|
}else if(!EPSW.REG.test(this.newData.psw)){
|
|
|
return this.$message.error(EPSW.tip, "提示");
|
|
|
}
|
|
|
- await axios.post(userAdd, {
|
|
|
+ let apiinfo = await axios.post(userAdd, {
|
|
|
nickName:this.newData.nickName,
|
|
|
password:this.newData.psw,
|
|
|
userName:this.newData.userName,
|
|
@@ -285,7 +285,7 @@ export default {
|
|
|
deptId:this.newData.deptId
|
|
|
// ...this.newData
|
|
|
});
|
|
|
- this.$message({message: '新增成功', type: 'success'});
|
|
|
+ this.$message({message: apiinfo.msg || '成功', type: 'success'});
|
|
|
// await this.$confirm('每个组织只能创建一个总管理员~', '新增用户')
|
|
|
this.newData = {}
|
|
|
this.newShow = false
|