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
d17ca0f3
authored
2023-06-02 10:31:57 +0800
by
renchao@pashanhoo.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:cas
1 parent
918f6962
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 @
d17ca0f
/*
* @Description: 项目权限
* @Autor: renchao
* @LastEditTime: 2023-06-0
1 16:16:04
* @LastEditTime: 2023-06-0
2 10:31:05
*/
import
Vue
from
'vue'
import
axios
from
'axios'
...
...
@@ -45,7 +45,7 @@ router.beforeEach(async (to, from, next) => {
if
(
process
.
env
.
NODE_ENV
===
'development'
)
{
localStorage
.
setItem
(
'token'
,
res
.
data
.
content
.
accessToken
)
}
else
{
Cookies
.
set
(
'
ACCESS_TOKEN
'
,
res
.
data
.
content
.
accessToken
)
Cookies
.
set
(
'
token
'
,
res
.
data
.
content
.
accessToken
)
}
window
.
location
.
href
=
localStorage
.
getItem
(
'location'
)
...
...
Please
register
or
sign in
to post a comment