Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xiaomai-cloud-class-web
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xiaomai-cloud-class
xiaomai-cloud-class-web
Commits
7abe14f0
Commit
7abe14f0
authored
Jun 19, 2021
by
maolipeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:加上企业id参数,防止报错
parent
ddb5b961
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
+5
-1
src/common/js/axios.ts
+5
-1
No files found.
src/common/js/axios.ts
View file @
7abe14f0
...
...
@@ -27,7 +27,8 @@ interface HeadersType{
storeId
?:
any
,
storeUserId
?:
any
,
userId
?:
any
,
xmtoken
?:
any
xmtoken
?:
any
,
EnterpriseId
?:
any
}
class
Axios
{
static
post
(
...
...
@@ -51,6 +52,9 @@ class Axios {
if
(
User
.
getToken
()){
headerObject
.
xmtoken
=
User
.
getToken
();
}
if
(
User
.
getEnterpriseId
())
{
headerObject
.
EnterpriseId
=
User
.
getEnterpriseId
();
}
const
instance
:
AxiosInstance
=
axios
.
create
({
timeout
:
TIME_OUT
,
responseType
:
'json'
,
...
...
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