Browse Source

:bug: 更换channel新数据在最下面

visuddhinanda 3 years ago
parent
commit
3900a7a8a5
1 changed files with 2 additions and 1 deletions
  1. 2 1
      public/app/palicanon/palicanon.js

+ 2 - 1
public/app/palicanon/palicanon.js

@@ -1216,8 +1216,9 @@ function RenderBreadCrumbs(){
 }
 function select_channel(id,obj=null){
     _channel = id;
+	_nextPageStart = 0;
     updataHistory();
-    communityGetChapter(0);
+    communityGetChapter(_nextPageStart);
     refresh_selected_channel();
     console.log("change channel",_channel);
     //$(obj).siblings.removeClass('active');