zhouna 4 năm trước cách đây
mục cha
commit
204261f223
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/js/searchStaticList.js

+ 1 - 1
src/js/searchStaticList.js

@@ -73,7 +73,7 @@ function getTabData(){
         const totalPage = data.pages;
         const totalNum = data.total;
         renderList(tabList);
-        if(totalPage > 1){
+        if(totalNum > 0){
             renderPagination(totalPage,Number(curPage),totalNum)
         } else{
             $('.pagination').html("")