MaiXinRong 11 miesięcy temu
rodzic
commit
f27bfd33fa
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      app/view/layout/menu.ejs

+ 1 - 1
app/view/layout/menu.ejs

@@ -11,7 +11,7 @@
             <% } %>
             <% for (const index in ctx.menuList) { %>
             <% if (ctx.menuList[index].display === undefined || !ctx.menuList[index].display) { continue } %>
-            <li <% if(ctx.controllerName === index || (ctx.controllerName === 'list' && index === 'tender')) { %>class="active"<% } %>>
+            <li <% if(ctx.controllerName === index || (ctx.controllerName === 'list' && index === 'tender') || (ctx.menuList[index].url && ctx.menuList[index].url === ctx.menu.url)) { %>class="active"<% } %>>
                 <a href="<%- (index === 'tender' ? ctx.curListUrl : ctx.menuList[index].url) %>" id="<%- 'nav_' + index%>" data-toggle="tooltip" data-placement="right" title="" data-original-title="<%- ctx.menuList[index].name %>">
                     <i class="fa <%- ctx.menuList[index].icon %>"></i>
                     <% if (ctx.menuList[index].caption) { %>