Commit abb951a8 by RuoYi

条件限制一级菜单href跳转

parent 72a1585e
......@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment