Sfoglia il codice sorgente

:poop: logging route watch

tags/0.9.0
J 4 anni fa
parent
commit
769cdef8a6
1 ha cambiato i file con 5 aggiunte e 3 eliminazioni
  1. 5
    3
      vue-theme/src/pages/list.vue

+ 5
- 3
vue-theme/src/pages/list.vue Vedi File

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

Loading…
Annulla
Salva