fix: 统一菜单缓存 key

This commit is contained in:
hxr
2023-12-16 14:31:00 +08:00
parent 09004fb89d
commit f32f4edc54
3 changed files with 3 additions and 3 deletions

View File

@@ -191,7 +191,7 @@ public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole> impl
*/
@Override
@Transactional
@CacheEvict(cacheNames = "system", key = "'routes'")
@CacheEvict(cacheNames = "menu", key = "'routes'")
public boolean assignMenusToRole(Long roleId, List<Long> menuIds) {
// 删除角色菜单
roleMenuService.remove(new LambdaQueryWrapper<SysRoleMenu>().eq(SysRoleMenu::getRoleId, roleId));