Browse Source

(*)角色编辑修改

master
zmh 1 year ago
parent
commit
9775201003
  1. 2
      api/app/lib/controllers/role/index.js

2
api/app/lib/controllers/role/index.js

@ -60,7 +60,7 @@ async function edit(ctx) {
const role = await models.Role.findOne({
where: { name: name, id: { $not: id }, delete: false }
})
if (!role) {
if (role) {
throw '当前角色已存在'
}
let storageData = { name }

Loading…
Cancel
Save