diff --git a/ruoyi-admin/src/main/resources/static/ruoyi/index.js b/ruoyi-admin/src/main/resources/static/ruoyi/index.js index 6cde2b7fc..04f67f3de 100644 --- a/ruoyi-admin/src/main/resources/static/ruoyi/index.js +++ b/ruoyi-admin/src/main/resources/static/ruoyi/index.js @@ -217,7 +217,7 @@ $(function() { dataIndex = $(this).data('index'), menuName = $.trim($(this).text()), flag = true; - $(".nav ul li").removeClass("selected"); + $(".nav ul li, .nav li").removeClass("selected"); $(this).parent("li").addClass("selected"); if (dataUrl == undefined || $.trim(dataUrl).length == 0) return false; diff --git a/ruoyi-admin/src/main/resources/templates/index.html b/ruoyi-admin/src/main/resources/templates/index.html index 1a111b0a9..612fc95e7 100644 --- a/ruoyi-admin/src/main/resources/templates/index.html +++ b/ruoyi-admin/src/main/resources/templates/index.html @@ -52,12 +52,12 @@
  • - + 一级菜单 - + -