删除权限角色提示错误修正

This commit is contained in:
hdm 2022-11-13 22:23:00 +08:00
parent 5f5662918c
commit df38fbbda7

View File

@ -63,14 +63,10 @@
}
if (obj.event === 'del') {
layer.confirm('确定要删除该权限角色吗?', { icon: 3, title: '提示' }, function (index) {
let callback = function (e) {
layer.msg(e.msg);
if (e.code == 0) {
layer.msg(res.msg);
if (res.code == 0) {
obj.del();
layer.close(index);
}
let callback = function (res) {
layer.msg(res.msg);
if (res.code == 0) {
obj.del();
}
}
tool.delete("/admin/role/delete", { id: obj.data.id }, callback);