权限为空问题处理

This commit is contained in:
Chopper
2021-08-06 11:46:23 +08:00
parent ba81cc5ece
commit e01586b394
2 changed files with 3 additions and 1 deletions

View File

@@ -77,7 +77,7 @@ public class ManagerTokenGenerate extends AbstractTokenGenerate {
//循环权限菜单
userMenuVOList.forEach(menu -> {
//循环菜单,赋予用户权限
if (menu.getPermission() != null) {
if (!menu.getPermission().isEmpty()) {
//获取路径集合
String[] permissionUrl = menu.getPermission().split(",");
//for循环路径集合