Reload after logging in
This commit is contained in:
parent
3d484def87
commit
966546086d
|
@ -54,6 +54,10 @@ export default new Vuex.Store({
|
|||
setChannelCreatorState(state, open) {
|
||||
state.channelCreatorIsOpen = open
|
||||
},
|
||||
newEndpoints(state, endpoints) {
|
||||
state.micropubEndpoint = endpoints.micropubEndpoint
|
||||
state.microsubEndpoint = endpoints.microsubEndpoint
|
||||
},
|
||||
createEventSource(state, url) {
|
||||
state.eventSource = new EventSource(state.microsubEndpoint + url, {
|
||||
headers: {
|
||||
|
|
|
@ -78,6 +78,9 @@
|
|||
|
||||
watch: {
|
||||
'$route'(to, from) {
|
||||
if (to === from) {
|
||||
this.$forceUpdate()
|
||||
}
|
||||
this.$store.dispatch('fetchChannels')
|
||||
this.$store.dispatch('fetchTimeline', {uid: to.params.uid}).then(() => {
|
||||
window.scrollTo({top: 0})
|
||||
|
|
Loading…
Reference in New Issue
Block a user