修复外链带端口出现的异常

pull/347/head
RuoYi 1 year ago
parent d6b4806e43
commit e2b4bb0420

@ -175,7 +175,7 @@ public class SysMenuServiceImpl implements ISysMenuService
router.setQuery(menu.getQuery());
router.setMeta(new MetaVo(menu.getMenuName(), menu.getIcon(), StringUtils.equals("1", menu.getIsCache()), menu.getPath()));
List<SysMenu> cMenus = menu.getChildren();
if (!cMenus.isEmpty() && cMenus.size() > 0 && UserConstants.TYPE_DIR.equals(menu.getMenuType()))
if (StringUtils.isNotEmpty(cMenus) && UserConstants.TYPE_DIR.equals(menu.getMenuType()))
{
router.setAlwaysShow(true);
router.setRedirect("noRedirect");
@ -475,8 +475,8 @@ public class SysMenuServiceImpl implements ISysMenuService
/**
*
*
* @param list
* @param t
* @param list
* @param t
*/
private void recursionFn(List<SysMenu> list, SysMenu t)
{
@ -521,11 +521,11 @@ public class SysMenuServiceImpl implements ISysMenuService
/**
*
*
* @return
* @return
*/
public String innerLinkReplaceEach(String path)
{
return StringUtils.replaceEach(path, new String[] { Constants.HTTP, Constants.HTTPS, Constants.WWW, "." },
new String[] { "", "", "", "/" });
return StringUtils.replaceEach(path, new String[] { Constants.HTTP, Constants.HTTPS, Constants.WWW, ".", ":" },
new String[] { "", "", "", "/", "/" });
}
}

Loading…
Cancel
Save