소스 검색

Поправка бага

Book Pauk 2 년 전
부모
커밋
d579be5376
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      client/components/Search/Search.vue

+ 4 - 1
client/components/Search/Search.vue

@@ -320,7 +320,7 @@ class Search {
     prevList = {};
     list = {
         queryFound: -1,
-        totalFound: 0,
+        totalFound: -1,
         inpxHash: '',
         liberamaReady: false,
     };
@@ -672,6 +672,9 @@ class Search {
     }
 
     updatePageCount() {
+        if (this.list.totalFound < 0)
+            return;
+
         const prevPageCount = this.pageCount;
 
         this.pageCount = Math.ceil(this.list.totalFound/this.limit);