浏览代码

:sparkles: add new search watcher for initPosts

tags/1.0.0^2
J 3 年前
父节点
当前提交
d32cf1a6b7
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5
    0
      vue-theme/src/pages/list.vue

+ 5
- 0
vue-theme/src/pages/list.vue 查看文件

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

正在加载...
取消
保存