Explorar el Código

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

Book Pauk hace 2 años
padre
commit
d579be5376
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  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);