Ver código fonte

:poop: logging route watch

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

+ 5
- 3
vue-theme/src/pages/list.vue Ver arquivo

@@ -209,9 +209,11 @@ export default {
209 209
         },
210 210
         $route(to, from) {
211 211
             // Reset the intersection loader if navigating AWAY from material sort page
212
-            if(from.fullPath.includes(sortTypes.material)) {
213
-                this.setIntersectionLoader()
214
-            }
212
+            console.log('---')
213
+            console.log('to :', to)
214
+            console.log('from :', from)
215
+            if(from.fullPath.includes(sortTypes.material)) this.setIntersectionLoader()
216
+            if(to.fullPath.includes(sortTypes.material)) this.unsetIntersectionLoader()
215 217
 
216 218
             // Check if we changed sort method
217 219
             // from no sort to sorted

Carregando…
Cancelar
Salvar