瀏覽代碼

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

Book Pauk 2 年之前
父節點
當前提交
26340bf061
共有 1 個文件被更改,包括 5 次插入2 次删除
  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();