Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
scc-net
netvs
netvs-core
Commits
068abbf8
Commit
068abbf8
authored
Nov 19, 2020
by
janis.streib
🦉
Browse files
FIX: avoid redundant navigation
parent
253d96b5
Pipeline
#118701
passed with stages
in 13 minutes and 29 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
frontend/src/main.js
View file @
068abbf8
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment