mirror of
https://ghfast.top/https://github.com/zsjy/halo-theme-dream2.0-plus.git
synced 2025-03-16 00:49:40 +08:00
fix(navbar): 修复多级菜单导致页面奔溃问题
This commit is contained in:
parent
e5088adf5a
commit
268c6d8f0a
@ -23,7 +23,7 @@
|
|||||||
<div th:unless="${#lists.isEmpty(menuItem.children)}" class="item-dropdown" trigger="hover" placement="60px">
|
<div th:unless="${#lists.isEmpty(menuItem.children)}" class="item-dropdown" trigger="hover" placement="60px">
|
||||||
<div class="item-dropdown-link">
|
<div class="item-dropdown-link">
|
||||||
<a class="item"
|
<a class="item"
|
||||||
th:href="${#annotations.getOrDefault(menuItem.status, 'href', 'javascript:')}"
|
th:href="${#strings.defaultString(menuItem.status.href, 'javascript:')}"
|
||||||
th:target="${menuItem.spec.target}"
|
th:target="${menuItem.spec.target}"
|
||||||
th:title="${menuItem.status.displayName}">
|
th:title="${menuItem.status.displayName}">
|
||||||
<i th:if="${!#strings.isEmpty(#annotations.getOrDefault(menuItem, 'icon', ''))}"
|
<i th:if="${!#strings.isEmpty(#annotations.getOrDefault(menuItem, 'icon', ''))}"
|
||||||
@ -35,7 +35,7 @@
|
|||||||
<nav class="item-dropdown-menu">
|
<nav class="item-dropdown-menu">
|
||||||
<li th:each="dropdown : ${menuItem.children}" class="item-sub-li">
|
<li th:each="dropdown : ${menuItem.children}" class="item-sub-li">
|
||||||
<a class="item"
|
<a class="item"
|
||||||
th:href="${#annotations.getOrDefault(dropdown.status, 'href', 'javascript:')}"
|
th:href="${#strings.defaultString(dropdown.status.href, 'javascript:')}"
|
||||||
th:target="${dropdown.spec.target}"
|
th:target="${dropdown.spec.target}"
|
||||||
th:title="${dropdown.status.displayName}">
|
th:title="${dropdown.status.displayName}">
|
||||||
<i th:if="${!#strings.isEmpty(#annotations.getOrDefault(dropdown, 'icon', ''))}"
|
<i th:if="${!#strings.isEmpty(#annotations.getOrDefault(dropdown, 'icon', ''))}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user