Explorar o código

Поправлен баг

Book Pauk %!s(int64=2) %!d(string=hai) anos
pai
achega
26340bf061
Modificáronse 1 ficheiros con 5 adicións e 2 borrados
  1. 5 2
      client/components/Search/Search.vue

+ 5 - 2
client/components/Search/Search.vue

@@ -325,9 +325,12 @@ const componentOptions = {
             deep: true,
         },
         selectedList(newValue) {
+            if (this.selectedListComponent) {
+                this.pageCount = 1;
+                this.list.totalFound = 0;
+            }
+
             this.selectedListComponent = (route2component[newValue] ? route2component[newValue].component : null);
-            this.pageCount = 1;
-            this.list.totalFound = 0;
 
             if (this.getListRoute() != newValue) {
                 this.updateRouteQueryFromSearch();