forked from AkkomaGang/akkoma-fe
Merge branch 'issue-450-user-data-populate' into 'develop'
#450 - dispatch login after saved state is loaded Closes #450 See merge request pleroma/pleroma-fe!701
This commit is contained in:
commit
b02085f2ef
1 changed files with 3 additions and 0 deletions
|
@ -60,6 +60,9 @@ export default function createPersistedState ({
|
||||||
merge({}, store.state, savedState)
|
merge({}, store.state, savedState)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
if (store.state.oauth.token) {
|
||||||
|
store.dispatch('loginUser', store.state.oauth.token)
|
||||||
|
}
|
||||||
loaded = true
|
loaded = true
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log("Couldn't load state")
|
console.log("Couldn't load state")
|
||||||
|
|
Loading…
Reference in a new issue