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
86f1e19d
authored
2023-06-02 10:44:28 +0800
by
renchao@pashanhoo.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:cas
1 parent
32b13d6c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
src/permission.js
src/permission.js
View file @
86f1e19
/*
* @Description: 项目权限
* @Autor: renchao
* @LastEditTime: 2023-06-02 10:
31:05
* @LastEditTime: 2023-06-02 10:
44:17
*/
import
Vue
from
'vue'
import
axios
from
'axios'
...
...
@@ -22,7 +22,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"
)
const
token
=
localStorage
.
getItem
(
"token"
)
||
Cookies
.
get
(
'token'
);
if
(
to
.
path
===
'/login'
)
{
if
(
token
)
{
next
(
'/'
)
...
...
Please
register
or
sign in
to post a comment