Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
周志凯
/
auth-manage
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 34a3d4f1
authored
Jun 12, 2020
by
周志凯
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
docs: add api
1 parent
ae484371
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
src/api/request.ts
src/api/request.ts
View file @
34a3d4f
...
...
@@ -15,7 +15,7 @@ const Service = axios.create({
Service
.
interceptors
.
request
.
use
(
(
config
:
AxiosRequestConfig
)
=>
{
const
aToken
=
sessionStorage
.
getItem
(
'aToken'
)
||
'bearer
fff06119-e69f-4527-a4bc-d4ca613e09be
'
;
const
aToken
=
sessionStorage
.
getItem
(
'aToken'
)
||
'bearer
70b78db2-2065-4d3a-b69b-1b857adcd9ab
'
;
aToken
&&
(
config
.
headers
.
Authorization
=
aToken
);
return
config
;
},
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment