Authored by ccbikai(👎🏻🍜)

右侧空白点击跳转

@@ -17,6 +17,7 @@ require('../common'); @@ -17,6 +17,7 @@ require('../common');
17 17
18 function resetHeight() { 18 function resetHeight() {
19 var h = document.body.scrollHeight - $search.outerHeight() - $nav.outerHeight(); 19 var h = document.body.scrollHeight - $search.outerHeight() - $nav.outerHeight();
  20 +
20 $contents.height(h); 21 $contents.height(h);
21 } 22 }
22 resetHeight(); 23 resetHeight();
@@ -73,7 +74,7 @@ $categoryContainer.on('touchend', function(e) { @@ -73,7 +74,7 @@ $categoryContainer.on('touchend', function(e) {
73 $subLevel.eq(index).removeClass('hide'); 74 $subLevel.eq(index).removeClass('hide');
74 } 75 }
75 76
76 - if ($this.find('a').attr('href')) { 77 + if ($this[0] && $this[0].tagName === 'LI' && $this.find('a').attr('href')) {
77 location.href = $this.find('a').attr('href'); 78 location.href = $this.find('a').attr('href');
78 } 79 }
79 }); 80 });