Fix issue where store is not cleared properly

This commit is contained in:
Ferdinand Thiessen 2020-11-09 03:59:17 +01:00
parent b479e3ad48
commit 63e9de01e2
1 changed files with 2 additions and 0 deletions

View File

@ -118,6 +118,8 @@ const actions: ActionTree<SessionInterface, StateInterface> = {
}).then(() => {
commit('clearCurrentSession');
commit('user/clearCurrentUser', null, { root: true });
// ensure also volatile store gets cleared by refreshing the site
Router.go(0);
});
},
/**