增加ctxPath参数,当映射根路径不同的时候使用
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user