Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
H
hsWebHttpClient
Project
Project
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
何虹
hsWebHttpClient
Commits
ab1f7e54
Commit
ab1f7e54
authored
4 years ago
by
何虹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
本次提交的说明
parent
281e67d7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
22 deletions
+30
-22
hsWebHttpClient.js
dist/hsWebHttpClient.js
+29
-21
hsWebHttpClient.min.js
dist/hsWebHttpClient.min.js
+1
-1
No files found.
dist/hsWebHttpClient.js
View file @
ab1f7e54
...
@@ -30,27 +30,32 @@ __webpack_require__.r(__webpack_exports__);
...
@@ -30,27 +30,32 @@ __webpack_require__.r(__webpack_exports__);
const
root
=
new
_root__WEBPACK_IMPORTED_MODULE_0__
.
default
()
class
HttpClient
{
const
restful
=
new
_packages_modules_restful__WEBPACK_IMPORTED_MODULE_3__
.
default
(
root
)
constructor
(
axios
){
const
webQueryClient
=
new
_packages_modules_webQueryClient__WEBPACK_IMPORTED_MODULE_5__
.
default
(
root
)
const
root
=
new
_root__WEBPACK_IMPORTED_MODULE_0__
.
default
(
axios
)
const
billflow
=
new
_packages_modules_billflow__WEBPACK_IMPORTED_MODULE_1__
.
default
(
root
)
const
restful
=
new
_packages_modules_restful__WEBPACK_IMPORTED_MODULE_3__
.
default
(
root
)
const
system
=
new
_packages_modules_system__WEBPACK_IMPORTED_MODULE_4__
.
default
(
root
,
restful
)
const
webQueryClient
=
new
_packages_modules_webQueryClient__WEBPACK_IMPORTED_MODULE_5__
.
default
(
root
)
const
webChartConfig
=
new
_packages_modules_webChartConfig__WEBPACK_IMPORTED_MODULE_2__
.
default
(
root
)
const
billflow
=
new
_packages_modules_billflow__WEBPACK_IMPORTED_MODULE_1__
.
default
(
root
)
const
ref
=
new
_packages_modules_ref__WEBPACK_IMPORTED_MODULE_6__
.
default
(
root
)
const
system
=
new
_packages_modules_system__WEBPACK_IMPORTED_MODULE_4__
.
default
(
root
,
restful
)
const
list
=
[
webQueryClient
,
billflow
,
system
,
webChartConfig
,
restful
,
ref
]
const
webChartConfig
=
new
_packages_modules_webChartConfig__WEBPACK_IMPORTED_MODULE_2__
.
default
(
root
)
const
api
=
{
const
ref
=
new
_packages_modules_ref__WEBPACK_IMPORTED_MODULE_6__
.
default
(
root
)
}
const
list
=
[
webQueryClient
,
billflow
,
system
,
webChartConfig
,
restful
,
ref
]
list
.
forEach
(
item
=>
{
const
api
=
{
}
list
.
forEach
(
item
=>
{
api
[
item
.
moduleName
]
=
item
api
[
item
.
moduleName
]
=
item
})
})
const
root_prototype
=
root
.
__proto__
const
root_prototype
=
root
.
__proto__
const
root_prototype_keys
=
Object
.
getOwnPropertyNames
(
root_prototype
)
const
root_prototype_keys
=
Object
.
getOwnPropertyNames
(
root_prototype
)
root_prototype_keys
.
forEach
(
k
=>
{
root_prototype_keys
.
forEach
(
k
=>
{
if
(
k
!==
'constructor'
)
{
if
(
k
!==
'constructor'
)
{
api
[
`
${
k
}
`
]
=
root_prototype
[
k
]
api
[
`
${
k
}
`
]
=
root_prototype
[
k
]
}
}
})
})
/* harmony default export */
__webpack_exports__
[
"default"
]
=
(
api
);
}
}
/* harmony default export */
__webpack_exports__
[
"default"
]
=
(
HttpClient
);
/***/
}),
/***/
}),
...
@@ -63,6 +68,9 @@ __webpack_require__.r(__webpack_exports__);
...
@@ -63,6 +68,9 @@ __webpack_require__.r(__webpack_exports__);
/* harmony import */
var
axios__WEBPACK_IMPORTED_MODULE_0___default
=
/*#__PURE__*/
__webpack_require__
.
n
(
axios__WEBPACK_IMPORTED_MODULE_0__
);
/* harmony import */
var
axios__WEBPACK_IMPORTED_MODULE_0___default
=
/*#__PURE__*/
__webpack_require__
.
n
(
axios__WEBPACK_IMPORTED_MODULE_0__
);
class
Root
{
class
Root
{
constructor
(
_axios
)
{
this
.
axios
=
_axios
||
(
axios__WEBPACK_IMPORTED_MODULE_0___default
())
}
filterEmptyValue
(
obj
)
{
filterEmptyValue
(
obj
)
{
if
(
!
obj
)
return
if
(
!
obj
)
return
const
emptyValues
=
[
null
,
undefined
,
'null'
,
'undefined'
,
NaN
]
const
emptyValues
=
[
null
,
undefined
,
'null'
,
'undefined'
,
NaN
]
...
@@ -102,7 +110,7 @@ class Root {
...
@@ -102,7 +110,7 @@ class Root {
if
(
aixosCtx
.
params
&&
aixosCtx
.
params
.
_user_info
)
delete
aixosCtx
.
params
.
_user_info
if
(
aixosCtx
.
params
&&
aixosCtx
.
params
.
_user_info
)
delete
aixosCtx
.
params
.
_user_info
data
&&
(
aixosCtx
.
data
=
data
)
data
&&
(
aixosCtx
.
data
=
data
)
headers
&&
(
aixosCtx
.
headers
=
headers
)
headers
&&
(
aixosCtx
.
headers
=
headers
)
const
result
=
axios__WEBPACK_IMPORTED_MODULE_0___default
()
(
aixosCtx
)
const
result
=
this
.
axios
(
aixosCtx
)
return
result
return
result
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
dist/hsWebHttpClient.min.js
View file @
ab1f7e54
This source diff could not be displayed because it is too large. You can
view the blob
instead.
This diff is collapsed.
Click to expand it.
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