Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcdj-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
85ab10c9
authored
2023-06-02 11:46:01 +0800
by
苗菁
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat: 单点登录token
1 parent
de2be3ea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
src/permission.js
src/permission.js
View file @
85ab10c
...
...
@@ -23,7 +23,7 @@ router.beforeEach(async (to, from, next) => {
let
hasAddDict
=
store
.
state
.
dict
.
addDict
let
hasAddRoute
=
store
.
state
.
permission
.
addRoutes
// cas操作
const
token
=
localStorage
.
getItem
(
"token"
)
||
Cookies
.
get
(
'
token
'
);
const
token
=
localStorage
.
getItem
(
"token"
)
||
Cookies
.
get
(
'
ACCESS_TOKEN
'
);
if
(
to
.
path
===
'/login'
)
{
if
(
token
)
{
next
(
'/'
)
...
...
Please
register
or
sign in
to post a comment