|
@@ -197,7 +197,7 @@ export default {
|
|
console.log('User Loggedin', state.isAdmin, state.isAdherent)
|
|
console.log('User Loggedin', state.isAdmin, state.isAdherent)
|
|
// have to reload systematicly because of autologout library not loaded if not logged in the begining
|
|
// have to reload systematicly because of autologout library not loaded if not logged in the begining
|
|
if (state.isAdmin) {
|
|
if (state.isAdmin) {
|
|
- // window.location.reload()
|
|
|
|
|
|
+ window.location.reload()
|
|
}
|
|
}
|
|
if (state.isAdherent) {
|
|
if (state.isAdherent) {
|
|
// router.push({
|
|
// router.push({
|
|
@@ -205,7 +205,7 @@ export default {
|
|
// })
|
|
// })
|
|
// // TODO: openCloseHamMenu(false)
|
|
// // TODO: openCloseHamMenu(false)
|
|
// dispatch('Common/openCloseHamMenu', false)
|
|
// dispatch('Common/openCloseHamMenu', false)
|
|
- // window.location = '/base'
|
|
|
|
|
|
+ window.location = '/base'
|
|
}
|
|
}
|
|
// else {
|
|
// else {
|
|
// // * window.location.reload()
|
|
// // * window.location.reload()
|
|
@@ -449,8 +449,8 @@ export default {
|
|
REST.post('/user/logout?format=json&token=' + state.logout_token, params, config)
|
|
REST.post('/user/logout?format=json&token=' + state.logout_token, params, config)
|
|
.then(resp => {
|
|
.then(resp => {
|
|
console.log('userLogout resp', resp)
|
|
console.log('userLogout resp', resp)
|
|
- // commit('setLoggedOut')
|
|
|
|
- // window.location.reload(true)
|
|
|
|
|
|
+ commit('setLoggedOut')
|
|
|
|
+ // window.location.reload(true) ???
|
|
})
|
|
})
|
|
.catch(error => {
|
|
.catch(error => {
|
|
console.warn('Issue with logout', error)
|
|
console.warn('Issue with logout', error)
|