From f516aac1f6a5482b7e13677d712b38daf1d58fc5 Mon Sep 17 00:00:00 2001 From: RuoYi Date: Wed, 25 Mar 2020 18:04:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dcontext-path=E7=9A=84?= =?UTF-8?q?=E6=83=85=E5=86=B5=E4=B8=8B=E4=B8=AA=E4=BA=BA=E4=B8=AD=E5=BF=83?= =?UTF-8?q?=E5=88=B7=E6=96=B0=E5=AF=BC=E8=87=B4=E6=A0=B7=E5=BC=8F=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-admin/src/main/resources/templates/index.html | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ruoyi-admin/src/main/resources/templates/index.html b/ruoyi-admin/src/main/resources/templates/index.html index fb2280a9..30cbfaeb 100644 --- a/ruoyi-admin/src/main/resources/templates/index.html +++ b/ruoyi-admin/src/main/resources/templates/index.html @@ -258,8 +258,6 @@ var skin = storage.get("skin"); var mode = "history"; // 历史访问路径缓存 var historyPath = storage.get("historyPath"); -// 排除非左侧菜单链接 -var excludesUrl = ["/system/user/profile"]; // 本地主题优先,未设置取系统配置 if($.common.isNotEmpty(skin)){ @@ -289,9 +287,7 @@ function switchSkin() { /** 刷新时访问路径页签 */ function applyPath(url) { $('a[href$="' + decodeURI(url) + '"]').click(); - if($.inArray(url, excludesUrl)){ - $('a[href$="' + url + '"]').parent("li").addClass("selected").parents("li").addClass("active").end().parents("ul").addClass("in"); - } + $('a[href$="' + url + '"]').parent("li").addClass("selected").parents("li :not(.user-panel)").addClass("active").end().parents("ul").addClass("in"); } $(function() {