修复用户更新状态,角色丢失

This commit is contained in:
COOL 2022-05-17 14:42:56 +08:00
parent f48144d7c5
commit 17435158a0

View File

@ -104,6 +104,9 @@ export class BaseSysUserService extends BaseService {
* @param user
*/
async updateUserRole(user) {
if (_.isEmpty(user.roleIdList)) {
return;
}
if (user.username === 'admin') {
throw new CoolCommException('非法操作~');
}