增加ctxPath参数,当映射根路径不同的时候使用

This commit is contained in:
thinkgem
2024-05-28 14:38:49 +08:00
parent 0a29bed4ad
commit cc0794c3fc
15 changed files with 59 additions and 64 deletions

View File

@@ -39,9 +39,9 @@ for (var menu in p.menuList![]){
if (@StringUtils.startsWith(href, "///")){
href = @StringUtils.substring(href, 2);
} else if (@StringUtils.startsWith(href, "//")){
href = @request.getContextPath() + @StringUtils.substring(href, 1);
href = @Global.getCtxPath() + @StringUtils.substring(href, 1);
} else if (@StringUtils.startsWith(href, "/")){
href = @request.getContextPath() + @Global.getAdminPath() + href;
href = @Global.getCtxPath() + @Global.getAdminPath() + href;
}
attrs = attrs + 'href="' + href + '"';
}else{