Browse Source

:sparkles: add new search watcher for initPosts

tags/1.0.0^2
J 3 years ago
parent
commit
d32cf1a6b7
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      vue-theme/src/pages/list.vue

+ 5
- 0
vue-theme/src/pages/list.vue View File

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

Loading…
Cancel
Save