This commit is contained in:
parent
d8584dd484
commit
0996737f2d
|
@ -97,9 +97,11 @@
|
|||
}
|
||||
})
|
||||
} else {
|
||||
roleAdd(this.form).then(data => {
|
||||
roleAdd(this.form).then(res => {
|
||||
if (res.code == 200) {
|
||||
this.$message.success('新增成功')
|
||||
this.$emit('ok')
|
||||
|
||||
this.onCancel()
|
||||
} else {
|
||||
this.$message.error('新增失败:' + res.msg)
|
||||
|
|
Loading…
Reference in New Issue