@@ -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);
}