Pārlūkot izejas kodu

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

tags/0.9.0
J 4 gadus atpakaļ
vecāks
revīzija
46b2bc963c
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1
    1
      vue-theme/src/pages/list.vue

+ 1
- 1
vue-theme/src/pages/list.vue Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt