Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcsjsb-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
c15a34a1
authored
2023-06-26 11:11:30 +0800
by
renchao@pashanhoo.com
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'dev'
2 parents
09ec986c
57334bfb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
src/permission.js
src/permission.js
View file @
c15a34a
/*
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-06-26 1
0:18:09
* @LastEditTime: 2023-06-26 1
1:11:23
*/
import
Vue
from
'vue'
import
axios
from
'axios'
...
...
@@ -65,12 +65,7 @@ router.beforeEach(async (to, from, next) => {
...
accessRoutes
,
{
path
:
"*"
,
redirect
:
"/404"
,
hidden
:
true
}
]);
const
routeTo
=
Cookies
.
get
(
"routerTo"
);
if
(
routeTo
&&
routeTo
!==
"/"
)
{
next
({
...
to
,
replace
:
true
});
}
else
{
next
(
path
)
}
next
(
path
)
}
}
if
(
window
.
_config
.
casEnable
===
true
)
{
...
...
@@ -110,13 +105,13 @@ router.beforeEach(async (to, from, next) => {
window
.
location
.
href
=
window
.
_config
.
services
.
management
+
`/management/cas/status?loginUrl=
${
window
.
_config
.
baseUrl
}
/sjsb/&hash=/login`
}
}
else
{
permission
()
if
(
to
.
path
===
'/login'
)
{
const
redirectUrl
=
getUrlParam
(
'redirectUrl'
);
if
(
redirectUrl
&&
redirectUrl
!==
''
)
{
window
.
location
.
href
=
redirectUrl
return
}
else
{
permission
()
next
(
'/'
);
return
}
...
...
Please
register
or
sign in
to post a comment