Przeglądaj źródła

:sparkles: add new search watcher for initPosts

tags/1.0.0^2
J 3 lat temu
rodzic
commit
d32cf1a6b7
1 zmienionych plików z 5 dodań i 0 usunięć
  1. 5
    0
      vue-theme/src/pages/list.vue

+ 5
- 0
vue-theme/src/pages/list.vue Wyświetl plik

@@ -242,6 +242,11 @@ export default {
242 242
             if(ignore.includes(newType)) return
243 243
             this.initPostList()
244 244
         },
245
+        isSearch(newTerm, oldTerm) {
246
+            if(!newTerm && oldTerm) {
247
+                this.initPostList()
248
+            }
249
+        },
245 250
         // Fires when navigating between pages with different sorts
246 251
         sortBy(newSort) {
247 252
             // console.log('sort changed :', newSort)

Ładowanie…
Anuluj
Zapisz