条件限制一级菜单href跳转

pull/112/head^2
RuoYi 2019-07-27 18:12:40 +08:00
parent 72a1585e26
commit abb951a889
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@
</ul>
</li>
<li th:each="menu : ${menus}">
<a th:class="${menu.target}" th:href="@{${menu.url == ''} ? |#| : ${menu.url}}">
<a th:class="@{${menu.url != '' && menu.url != '#'} ? ${menu.target}}" th:href="@{${menu.url == ''} ? |#| : ${menu.url}}">
<i class="fa fa-bar-chart-o" th:class="${menu.icon}"></i>
<span class="nav-label" th:text="${menu.menuName}">一级菜单</span>
<span th:class="${menu.url == '' || menu.url == '#'} ? |fa arrow|"></span>