"vscode:/vscode.git/clone" did not exist on "8ad33f026954a79bc898f2eedd91c6722dafe6a2"
Commit 96276dfc authored by ZhengJie's avatar ZhengJie
Browse files

[缺陷修复](v2.5): 修复修改角色权限按钮后缓存未刷新的Bug

close https://github.com/elunez/eladmin/issues/402
parent 0cd4ff90
...@@ -125,6 +125,7 @@ public class RoleServiceImpl implements RoleService { ...@@ -125,6 +125,7 @@ public class RoleServiceImpl implements RoleService {
role.setMenus(resources.getMenus()); role.setMenus(resources.getMenus());
// 清理缓存 // 清理缓存
redisUtils.delByKeys("menu::user:",userIds); redisUtils.delByKeys("menu::user:",userIds);
redisUtils.delByKeys("role::auth:",userIds);
redisUtils.del("role::id:" + resources.getId()); redisUtils.del("role::id:" + resources.getId());
roleRepository.save(role); roleRepository.save(role);
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment