Selaa lähdekoodia

:sparkles: add new search watcher for initPosts

tags/1.0.0^2
J 3 vuotta sitten
vanhempi
commit
d32cf1a6b7
1 muutettua tiedostoa jossa 5 lisäystä ja 0 poistoa
  1. 5
    0
      vue-theme/src/pages/list.vue

+ 5
- 0
vue-theme/src/pages/list.vue Näytä tiedosto

@@ -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)

Loading…
Peruuta
Tallenna