Ver código fonte

:recycle: re-init and clear on sort-by

tags/0.9.0
J 4 anos atrás
pai
commit
46b2bc963c
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1
    1
      vue-theme/src/pages/list.vue

+ 1
- 1
vue-theme/src/pages/list.vue Ver arquivo

197
         $route(to, from) {
197
         $route(to, from) {
198
             // Check if we changed sort method
198
             // Check if we changed sort method
199
             console.log('to:', to)
199
             console.log('to:', to)
200
-            if(this.sortBy) { this.clearAllPosts() }
200
+            if(this.sortBy) { this.clearAndInitPostList() }
201
         }
201
         }
202
     },
202
     },
203
     mounted() {
203
     mounted() {

Carregando…
Cancelar
Salvar