Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
founder_vue
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
常超
founder_vue
Commits
1bd31098
Commit
1bd31098
authored
Dec 28, 2021
by
liyuhang19990520
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
666646c9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/plugins/axios.js
+2
-2
No files found.
src/plugins/axios.js
View file @
1bd31098
/*
* @Author: your name
* @Date: 2021-09-07 09:57:48
* @LastEditTime: 2021-12-
16 10:18:36
* @LastEditTime: 2021-12-
28 15:00:10
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \指纹系统\founder_vue\src\plugins\axios.js
...
...
@@ -38,10 +38,10 @@ const _axios = axios.create(config);
_axios
.
interceptors
.
request
.
use
(
function
(
config
)
{
//判断是否登录
config
.
headers
.
BrowserHeader
=
'H5'
;
if
(
config
.
url
.
indexOf
(
'/login/myLoginForm'
)
<=
0
)
{
if
(
localStorage
.
getItem
(
"token"
))
{
config
.
headers
.
Authorization
=
localStorage
.
getItem
(
"token"
);
config
.
headers
.
BrowserHeader
=
'H5'
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment