After fetching the timeline scroll back to the top
This commit is contained in:
parent
429170737f
commit
be03ad2b29
|
@ -79,7 +79,9 @@
|
||||||
watch: {
|
watch: {
|
||||||
'$route'(to, from) {
|
'$route'(to, from) {
|
||||||
this.$store.dispatch('fetchChannels')
|
this.$store.dispatch('fetchChannels')
|
||||||
this.$store.dispatch('fetchTimeline', {uid: to.params.uid})
|
this.$store.dispatch('fetchTimeline', {uid: to.params.uid}).then(() => {
|
||||||
|
window.scrollTo({top: 0})
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user