Pre Merge pull request !223 from 木土/N/A

This commit is contained in:
木土 2022-05-01 12:23:54 +00:00 committed by Gitee
commit 59693b173f
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -337,7 +337,8 @@ public class SysMenuServiceImpl implements ISysMenuService
*/
public String getRouteName(SysMenu menu)
{
String routerName = StringUtils.capitalize(menu.getPath());
String path = menu.getPath().replaceAll("[^a-zA-Z0-9_]+", "_");
String routerName = StringUtils.capitalize(path);
// 非外链并且是一级目录类型为目录
if (isMenuFrame(menu))
{