소스 검색

mod 导航高亮

panqiuyao 2 년 전
부모
커밋
9cab0d7c66
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/home/view/default/base/mall_header.html

+ 1 - 1
app/home/view/default/base/mall_header.html

@@ -168,7 +168,7 @@
                     $(".nav_list .site_menu a").removeClass('current')
                     node.addClass('current')
                 }
-                if(location.pathname === '/' || location.pathname === '/home/Index/index.html'){
+                if(location.pathname === '/' || location.pathname === "{:url('Index/index')}"){
                     $(".nav_list a").eq(0).addClass('current')
                 }
             })