|
@@ -197,7 +197,7 @@ export default {
|
|
|
console.log('User Loggedin', state.isAdmin, state.isAdherent)
|
|
|
|
|
|
if (state.isAdmin) {
|
|
|
-
|
|
|
+ window.location.reload()
|
|
|
}
|
|
|
if (state.isAdherent) {
|
|
|
|
|
@@ -205,7 +205,7 @@ export default {
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
+ window.location = '/base'
|
|
|
}
|
|
|
|
|
|
|
|
@@ -449,8 +449,8 @@ export default {
|
|
|
REST.post('/user/logout?format=json&token=' + state.logout_token, params, config)
|
|
|
.then(resp => {
|
|
|
console.log('userLogout resp', resp)
|
|
|
-
|
|
|
-
|
|
|
+ commit('setLoggedOut')
|
|
|
+
|
|
|
})
|
|
|
.catch(error => {
|
|
|
console.warn('Issue with logout', error)
|