Selaa lähdekoodia

:recycle: removing rules on route change for list

tags/0.9.0
J 4 vuotta sitten
vanhempi
commit
169c3ab94a
1 muutettua tiedostoa jossa 4 lisäystä ja 4 poistoa
  1. 4
    4
      vue-theme/src/pages/list.vue

+ 4
- 4
vue-theme/src/pages/list.vue Näytä tiedosto

196
                 // console.warn('sort not found:', sort)
196
                 // console.warn('sort not found:', sort)
197
                 sort = null
197
                 sort = null
198
             }
198
             }
199
-
200
-            if (!this[`all${type}Loaded`] || sort) this.getPosts(true)
199
+            console.log(to)
200
+            console.log(from)
201
+            this.getPosts(true)
201
 
202
 
202
             // Add the infinite scroll load
203
             // Add the infinite scroll load
203
-            console.log('setting intersection loader...')
204
+            console.log('route setting intersection loader...')
204
             this.setIntersectionLoader()
205
             this.setIntersectionLoader()
205
         },
206
         },
206
     },
207
     },
208
         if (this.$route.hash) {
209
         if (this.$route.hash) {
209
             setTimeout(() => this.scrollTo(this.$route.hash), TIMEOUT)
210
             setTimeout(() => this.scrollTo(this.$route.hash), TIMEOUT)
210
         }
211
         }
211
-        console.log('setting intersection loader...')
212
         this.setIntersectionLoader()
212
         this.setIntersectionLoader()
213
     },
213
     },
214
     created() {
214
     created() {

Loading…
Peruuta
Tallenna