Explorar el Código

:recycle: clearing on sort-by

tags/0.9.0
J hace 4 años
padre
commit
de3cf5674d
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5
    0
      vue-theme/src/pages/list.vue

+ 5
- 0
vue-theme/src/pages/list.vue Ver fichero

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

Loading…
Cancelar
Guardar