优化页面内嵌iframe切换tab不刷新数据

This commit is contained in:
RuoYi 2022-08-23 20:59:02 +08:00
parent d2b0f17528
commit 57778ca7bc
2 changed files with 7 additions and 2 deletions

View File

@ -19,6 +19,11 @@ public class Constants
*/ */
public static final String GBK = "GBK"; public static final String GBK = "GBK";
/**
* www主域
*/
public static final String WWW = "www.";
/** /**
* http请求 * http请求
*/ */

View File

@ -529,7 +529,7 @@ public class SysMenuServiceImpl implements ISysMenuService
*/ */
public String innerLinkReplaceEach(String path) public String innerLinkReplaceEach(String path)
{ {
return StringUtils.replaceEach(path, new String[] { Constants.HTTP, Constants.HTTPS }, return StringUtils.replaceEach(path, new String[] { Constants.HTTP, Constants.HTTPS, Constants.WWW, "." },
new String[] { "", "" }); new String[] { "", "", "", "/" });
} }
} }