Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
sys-sdk
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Jira
Jira
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
sys-sdk
Commits
c0073c00
Commit
c0073c00
authored
Nov 16, 2021
by
王苓芝
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tenantId
parent
14f3173e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
http.js
lib/http.js
+1
-1
No files found.
lib/http.js
View file @
c0073c00
...
@@ -92,7 +92,7 @@ instance.interceptors.request.use(
...
@@ -92,7 +92,7 @@ instance.interceptors.request.use(
beforeRequest
(
config
.
headers
.
_loading
,
config
.
headers
.
_isLoading
);
beforeRequest
(
config
.
headers
.
_loading
,
config
.
headers
.
_isLoading
);
const
token
=
localStorage
.
get
(
'
token
'
);
const
token
=
localStorage
.
get
(
'
token
'
);
const
user
=
localStorage
.
get
(
'
user
'
);
const
user
=
localStorage
.
get
(
'
user
'
);
const
tenantId
=
localStorage
.
get
(
'
qg-tenant-i
d
'
);
const
tenantId
=
localStorage
.
get
(
'
tenantI
d
'
);
if
(
user
)
{
if
(
user
)
{
config
.
headers
[
'
Account
'
]
=
user
.
account
;
config
.
headers
[
'
Account
'
]
=
user
.
account
;
config
.
headers
[
'
Account-Name
'
]
=
encodeURI
(
user
.
name
);
config
.
headers
[
'
Account-Name
'
]
=
encodeURI
(
user
.
name
);
...
...
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