Просмотр исходного кода

:recycle: clearing on sort-by

tags/0.9.0
J 4 лет назад
Родитель
Сommit
de3cf5674d
1 измененных файлов: 5 добавлений и 0 удалений
  1. 5
    0
      vue-theme/src/pages/list.vue

+ 5
- 0
vue-theme/src/pages/list.vue Просмотреть файл

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

Загрузка…
Отмена
Сохранить