소스 검색

:poop: logging route watch

tags/0.9.0
J 4 년 전
부모
커밋
769cdef8a6
1개의 변경된 파일5개의 추가작업 그리고 3개의 파일을 삭제
  1. 5
    3
      vue-theme/src/pages/list.vue

+ 5
- 3
vue-theme/src/pages/list.vue 파일 보기

@@ -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…
취소
저장