Преглед на файлове

update 页面菜单显示

bzd_lxf преди 1 месец
родител
ревизия
e50357eb31
променени са 2 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 2 2
      health-admin/src/main/resources/templates/index-topnav.html
  2. 1 1
      health-admin/src/main/resources/templates/index.html

+ 2 - 2
health-admin/src/main/resources/templates/index-topnav.html

@@ -92,7 +92,7 @@
 			</div>
 
             <!-- 实例演示菜单 -->
-			<div class="tab-pane fade height-full" id="demo" th:if="${demoEnabled and user.userName=='admn'}">
+			<div class="tab-pane fade height-full" id="demo" th:if="${demoEnabled and user.userName=='admin'}">
 			  <ul class="nav">
 			    <li>
 			      <a href="javascript:;"><i class="fa fa-edit"></i> <span class="nav-label">表单</span><span class="fa arrow"></span></a>
@@ -242,7 +242,7 @@
                       </a>
                     </li>
 
-                    <li role="presentation" id="tab_demo" th:if="${demoEnabled and user.userName=='admins'}">
+                    <li role="presentation" id="tab_demo" th:if="${demoEnabled and user.userName=='admin'}">
                       <a data-toggle="tab" href="#demo">
                         <i class="fa fa-desktop"></i> <span>实例演示</span>
                       </a>

+ 1 - 1
health-admin/src/main/resources/templates/index.html

@@ -52,7 +52,7 @@
                     <a class="menuItem" th:href="@{/system/main}"><i class="fa fa-home"></i> <span class="nav-label">首页</span> </a>
                 </li>
                 <li th:each="menu : ${menus}">
-                	<a th:if="${demoEnabled and user.loginName=='admin'}" th:class="@{${!#strings.isEmpty(menu.url) && menu.url != '#'} ? ${menu.target}}" th:href="@{${#strings.isEmpty(menu.url)} ? |#| : ${menu.url}}" th:data-refresh="${menu.isRefresh == '0'}">
+                	<a th:if="${user.loginName=='admin'}" th:class="@{${!#strings.isEmpty(menu.url) && menu.url != '#'} ? ${menu.target}}" th:href="@{${#strings.isEmpty(menu.url)} ? |#| : ${menu.url}}" th:data-refresh="${menu.isRefresh == '0'}">
                 		<i class="fa fa-bar-chart-o" th:class="${menu.icon}"></i>
                     	<span class="nav-label" th:text="${menu.menuName}">一级菜单</span>
                     	<span th:class="${#strings.isEmpty(menu.url) || menu.url == '#'} ? |fa arrow|"></span>