修改菜单选中状态失效问题

This commit is contained in:
RuoYi
2019-06-15 10:18:57 +08:00
parent d2e5bd1e43
commit ce18a9e86d
2 changed files with 5 additions and 3 deletions

View File

@ -216,6 +216,8 @@ $(function() {
dataIndex = $(this).data('index'),
menuName = $.trim($(this).text()),
flag = true;
$(".nav ul li").removeClass("active");
$(this).parent("li").addClass("active");
if (dataUrl == undefined || $.trim(dataUrl).length == 0) return false;
// 选项卡菜单已存在