|
@@ -197,7 +197,7 @@ export default {
|
|
|
console.log('User Loggedin', state.isAdmin, state.isAdherent)
|
|
|
// have to reload systematicly because of autologout library not loaded if not logged in the begining
|
|
|
if (state.isAdmin) {
|
|
|
- // window.location.reload()
|
|
|
+ window.location.reload()
|
|
|
}
|
|
|
if (state.isAdherent) {
|
|
|
// router.push({
|
|
@@ -205,7 +205,7 @@ export default {
|
|
|
// })
|
|
|
// // TODO: openCloseHamMenu(false)
|
|
|
// dispatch('Common/openCloseHamMenu', false)
|
|
|
- // window.location = '/base'
|
|
|
+ window.location = '/base'
|
|
|
}
|
|
|
// else {
|
|
|
// // * window.location.reload()
|
|
@@ -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')
|
|
|
- // window.location.reload(true)
|
|
|
+ commit('setLoggedOut')
|
|
|
+ // window.location.reload(true) ???
|
|
|
})
|
|
|
.catch(error => {
|
|
|
console.warn('Issue with logout', error)
|