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
e8c1abe3
Commit
e8c1abe3
authored
Jan 08, 2022
by
li_hongchao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
http.js优化,添加默认值
parent
424902d8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
src/netmgr/xtfkgl/xtfkgl.js
+1
-1
src/request/http.js
+5
-5
No files found.
src/netmgr/xtfkgl/xtfkgl.js
View file @
e8c1abe3
...
...
@@ -35,7 +35,7 @@ export default {
* @date: 2022/1/5 11:31
*/
yhList
()
{
return
fHttp
.
get
(
_path
.
ljkyh
+
'getUserAndUserGroup'
,
{}
)
return
fHttp
.
get
(
_path
.
ljkyh
+
'getUserAndUserGroup'
)
},
/**
...
...
src/request/http.js
View file @
e8c1abe3
...
...
@@ -216,7 +216,7 @@ export default {
/**
* 封装get方法
*/
get
(
url
,
data
)
{
get
(
url
,
data
=
{}
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
common
.
get
(
url
,
{
...
...
@@ -235,7 +235,7 @@ export default {
/**
* 封装post请求
*/
post
(
url
,
data
,
config
)
{
post
(
url
,
data
=
{},
config
=
{}
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
common
.
post
(
url
,
qs
.
stringify
(
data
),
config
)
.
then
(
response
=>
{
...
...
@@ -251,7 +251,7 @@ export default {
/**
* 封装post请求 multipart/form-data
*/
postform
(
url
,
data
,
config
)
{
postform
(
url
,
data
=
{},
config
=
{}
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
instance
.
post
(
url
,
data
,
config
).
then
(
response
=>
{
logger
.
net
(
data
,
url
,
response
)
...
...
@@ -265,7 +265,7 @@ export default {
/**
* 封装post请求 文件下载
*/
postdown
(
url
,
data
,
config
)
{
postdown
(
url
,
data
=
{},
config
=
{}
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
down
.
post
(
url
,
data
,
config
).
then
(
response
=>
{
logger
.
net
(
data
,
url
,
response
)
...
...
@@ -280,7 +280,7 @@ export default {
/**
* 封装post请求 json格式
*/
postJson
(
url
,
data
,
config
)
{
postJson
(
url
,
data
=
{},
config
=
{}
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
json
.
post
(
url
,
data
,
config
).
then
(
response
=>
{
logger
.
net
(
data
,
url
,
response
)
...
...
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