fix: menu api example in theme dev docs (#252)

日常主题开发中,我们应该使用菜单最终生成到名字

```release-note
None
````
This commit is contained in:
Hilary Liu
2023-09-08 10:40:12 +08:00
committed by GitHub
parent a1a2a4d297
commit 2e77363d29
19 changed files with 47 additions and 47 deletions

View File

@@ -30,7 +30,7 @@ menuFinder.getByName(name)
<div th:with="menu = ${menuFinder.getByName('menu-foo')}">
<ul th:with="menuItems = ${menu.menuItems}">
<li th:each="menuItem : ${menuItems}">
<a th:href="@{${menuItem.status.href}}" th:text="${menuItem.spec.displayName}"></a>
<a th:href="@{${menuItem.status.href}}" th:text="${menuItem.status.displayName}"></a>
</li>
</ul>
</div>
@@ -60,7 +60,7 @@ menuFinder.getPrimary()
<div th:with="menu = ${menuFinder.getPrimary()}">
<ul th:with="menuItems = ${menu.menuItems}">
<li th:each="menuItem : ${menuItems}">
<a th:href="@{${menuItem.status.href}}" th:text="${menuItem.spec.displayName}"></a>
<a th:href="@{${menuItem.status.href}}" th:text="${menuItem.status.displayName}"></a>
</li>
</ul>
</div>