瀏覽代碼

fix 菜单列表

Administrator 4 年之前
父節點
當前提交
c5e0a8eef5
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      boman-web-core/src/main/java/com/boman/web/core/utils/AuthUtils.java

+ 4 - 0
boman-web-core/src/main/java/com/boman/web/core/utils/AuthUtils.java

@@ -83,6 +83,10 @@ public class AuthUtils {
      * @param errMsg    错误提示语
      */
     public static void containsFunction(String menuRole, String funcType, String errMsg) {
+        if (isEmpty(menuRole)) {
+            throw new NoSuchFunctionException("菜单权限未配置");
+
+        }
         if (!menuRole.contains(funcType)) {
             throw new NoSuchFunctionException(errMsg);
         }