Parcourir la source

:poop: logging route watch

tags/0.9.0
J il y a 4 ans
Parent
révision
769cdef8a6
1 fichiers modifiés avec 5 ajouts et 3 suppressions
  1. 5
    3
      vue-theme/src/pages/list.vue

+ 5
- 3
vue-theme/src/pages/list.vue Voir le fichier

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

Chargement…
Annuler
Enregistrer