diff --git a/src/store/modules/auth.js b/src/store/modules/auth.js index 810dcaab..91c38d63 100644 --- a/src/store/modules/auth.js +++ b/src/store/modules/auth.js @@ -25,6 +25,9 @@ export default { }, setUserSettings(state, settings) { state.settings = settings + const info = state.info !== null ? state.info : {} + info.name = settings.name + state.info = info }, authenticated(state, authenticated) { state.authenticated = authenticated