Browse Source

采美百科顶部导航高亮bug修复

喻文俊 3 years ago
parent
commit
76715fcfa4
1 changed files with 0 additions and 2 deletions
  1. 0 2
      src/main/resources/static/js/encyclopedia/common.js

+ 0 - 2
src/main/resources/static/js/encyclopedia/common.js

@@ -321,13 +321,11 @@ function makeFloorList(options) {
 
 function activeNavbar(selector) {
     var pathname = window.location.pathname.replace(/(-\d+){0,}(.html$)/g, '') + '.html';
-    console.log(pathname);
     selector = $(selector);
     selector.each(function(index, el){
         $(el).removeClass('active');
         if($(el).find('a').length > 0){
             var href = $(el).find('a').attr('href');
-            console.log(href);
             if(pathname.endsWith(href)){
                 $(el).addClass('active');
             }