Commit 068abbf8 authored by Janis Streib's avatar Janis Streib 🦉

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')
router.push('/login')
if (router.currentRoute.path !== '/login') {
router.push('/login')
}
break
case 403:
await LoginService.logout(null)
store.commit('logout')
router.push('/login')
if (router.currentRoute.path !== '/login') {
router.push('/login')
}
break
default:
break
......
Markdown is supported
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