This commit is contained in:
aoli.qu 2022-02-26 17:55:58 +08:00
parent d8584dd484
commit 0996737f2d
1 changed files with 3 additions and 1 deletions

View File

@ -97,9 +97,11 @@
} }
}) })
} else { } else {
roleAdd(this.form).then(data => { roleAdd(this.form).then(res => {
if (res.code == 200) { if (res.code == 200) {
this.$message.success('新增成功') this.$message.success('新增成功')
this.$emit('ok')
this.onCancel() this.onCancel()
} else { } else {
this.$message.error('新增失败:' + res.msg) this.$message.error('新增失败:' + res.msg)