Commit 068abbf8 authored by janis.streib's avatar janis.streib 🦉
Browse files

FIX: avoid redundant navigation

parent 253d96b5
Pipeline #118701 passed with stages
in 13 minutes and 29 seconds
......@@ -321,12 +321,16 @@ async function init() {
case 401:
await LoginService.logout(null)
store.commit('logout')
if (router.currentRoute.path !== '/login') {
router.push('/login')
}
break
case 403:
await LoginService.logout(null)
store.commit('logout')
if (router.currentRoute.path !== '/login') {
router.push('/login')
}
break
default:
break
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment