判断菜单URL是否是外部链接进行区别操作
This commit is contained in:
@@ -17,7 +17,12 @@
|
||||
|
||||
<a class="nav-link nav-toggle"
|
||||
<c:if test="${secondMenu.href != null && secondMenu.href != ''}" var="secondHref">
|
||||
href="javascript:;" onclick="page_turn('${secondMenu.id }','${secondMenu.functionId }','1','','${ctx}${secondMenu.href }',this)" target="mainFrame" >
|
||||
<c:if test="${fn:startsWith(secondMenu.href,'http')}" var="secondFlag">
|
||||
href="javascript:;" onclick="page_turn('${secondMenu.id }','${secondMenu.functionId }','1','','${secondMenu.href }',this)" target="mainFrame" >
|
||||
</c:if>
|
||||
<c:if test="${!secondFlag}">
|
||||
href="javascript:;" onclick="page_turn('${secondMenu.id }','${secondMenu.functionId }','1','','${ctx}${secondMenu.href }',this)" target="mainFrame" >
|
||||
</c:if>
|
||||
</c:if>
|
||||
<c:if test="${!secondHref }">
|
||||
href="javascript:;" class="nav-link nav-toggle">
|
||||
@@ -42,7 +47,12 @@
|
||||
|
||||
<a class="nav-link nav-toggle"
|
||||
<c:if test="${thirdMenu.href != null && thirdMenu.href != ''}" var="thirdHref">
|
||||
href="javascript:;" onclick="page_turn('${thirdMenu.id }','${thirdMenu.functionId }','2','','${ctx}${thirdMenu.href }',this)" target="mainFrame" >
|
||||
<c:if test="${fn:startsWith(thirdMenu.href,'http')}" var="thirdFlag">
|
||||
href="javascript:;" onclick="page_turn('${thirdMenu.id }','${thirdMenu.functionId }','2','','${thirdMenu.href }',this)" target="mainFrame" >
|
||||
</c:if>
|
||||
<c:if test="${!thirdFlag}">
|
||||
href="javascript:;" onclick="page_turn('${thirdMenu.id }','${thirdMenu.functionId }','2','','${ctx}${thirdMenu.href }',this)" target="mainFrame" >
|
||||
</c:if>
|
||||
|
||||
</c:if>
|
||||
<c:if test="${!thirdHref }">
|
||||
@@ -62,7 +72,12 @@
|
||||
<c:if test="${fourthMenu.isShow==1}">
|
||||
<li class="nav-item" id="menu_${fourthMenu.id }" menu-id="${fourthMenu.id }" menu-name="<spring:message code="${fourthMenu.code}"></spring:message>" >
|
||||
<a href="javascript:;"
|
||||
onclick="page_turn('${fourthMenu.id }','${fourthMenu.functionId }','3','','${ctx}${fourthMenu.href }',this)" target="mainFrame"
|
||||
<c:if test="${fn:startsWith(fourthMenu.href,'http')}" var="fourFlag">
|
||||
onclick="page_turn('${fourthMenu.id }','${fourthMenu.functionId }','3','','${fourthMenu.href }',this)" target="mainFrame"
|
||||
</c:if>
|
||||
<c:if test="${!fourFlag}">
|
||||
onclick="page_turn('${fourthMenu.id }','${fourthMenu.functionId }','3','','${ctx}${fourthMenu.href }',this)" target="mainFrame"
|
||||
</c:if>
|
||||
class="nav-link ">
|
||||
<%-- ${fourthMenu.name } --%> <spring:message code="${fourthMenu.code}"></spring:message>
|
||||
<!-- <span class="badge badge-danger">1</span> -->
|
||||
|
||||
Reference in New Issue
Block a user