Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
dev
/
vue-cli3-template-master
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
80b25105
authored
2020-08-14 11:48:52 +0800
by
simon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
no message
1 parent
1a792bc3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
src/api/fetch-api.js
src/api/fetch-api.js
View file @
80b2510
...
...
@@ -124,7 +124,7 @@ export const httpGet = params => {
},
{
headers
,
opt
}).
then
(
res
=>
res
.
data
);
}).
then
(
res
=>
res
.
data
.
content
);
}
/**
...
...
@@ -150,7 +150,7 @@ export const httpPost = params => {
return
axios
.
post
(
reqUrl
,
data
,
{
headers
,
opt
}).
then
(
res
=>
res
.
data
);
}).
then
(
res
=>
res
.
data
.
content
);
}
...
...
@@ -174,5 +174,5 @@ export const formdata = params => {
config
=
{}
}
config
.
header
=
formDataHeaders
.
headers
return
axios
.
post
(
`
${
base
}${
url
}
`
,
data
,
config
).
then
(
res
=>
res
.
data
);
return
axios
.
post
(
`
${
base
}${
url
}
`
,
data
,
config
).
then
(
res
=>
res
.
data
.
content
);
}
\ No newline at end of file
...
...
Please
register
or
sign in
to post a comment