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
85191aa2
Commit
85191aa2
authored
Dec 17, 2020
by
何虹
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
打包
parent
4ed15565
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
11 deletions
+13
-11
hsWebHttpClient.js
dist/hsWebHttpClient.js
+12
-10
hsWebHttpClient.min.js
dist/hsWebHttpClient.min.js
+1
-1
No files found.
dist/hsWebHttpClient.js
View file @
85191aa2
...
...
@@ -31,7 +31,8 @@ __webpack_require__.r(__webpack_exports__);
class
HttpClient
{
constructor
(
axios
){
constructor
(
axios
)
{
this
.
axios
=
axios
const
root
=
new
_root__WEBPACK_IMPORTED_MODULE_0__
.
default
(
axios
)
const
restful
=
new
_packages_modules_restful__WEBPACK_IMPORTED_MODULE_3__
.
default
(
root
)
const
webQueryClient
=
new
_packages_modules_webQueryClient__WEBPACK_IMPORTED_MODULE_5__
.
default
(
root
)
...
...
@@ -39,19 +40,19 @@ class HttpClient {
const
system
=
new
_packages_modules_system__WEBPACK_IMPORTED_MODULE_4__
.
default
(
root
,
restful
)
const
webChartConfig
=
new
_packages_modules_webChartConfig__WEBPACK_IMPORTED_MODULE_2__
.
default
(
root
)
const
ref
=
new
_packages_modules_ref__WEBPACK_IMPORTED_MODULE_6__
.
default
(
root
)
const
list
=
[
webQueryClient
,
billflow
,
system
,
webChartConfig
,
restful
,
ref
]
const
list
=
[
root
,
webQueryClient
,
billflow
,
system
,
webChartConfig
,
restful
,
ref
]
// const api = {
// }
list
.
forEach
(
item
=>
{
this
[
item
.
moduleName
]
=
item
})
const
root_prototype
=
root
.
__proto__
const
root_prototype_keys
=
Object
.
getOwnPropertyNames
(
root_prototype
)
root_prototype_keys
.
forEach
(
k
=>
{
if
(
k
!==
'constructor'
)
{
this
[
`
${
k
}
`
]
=
root_prototype
[
k
]
}
})
//
const root_prototype = root.__proto__
//
const root_prototype_keys = Object.getOwnPropertyNames(root_prototype)
//
root_prototype_keys.forEach(k => {
//
if (k !== 'constructor') {
//
this[`${k}`] = root_prototype[k]
//
}
//
})
}
}
...
...
@@ -69,6 +70,7 @@ __webpack_require__.r(__webpack_exports__);
class
Root
{
constructor
(
_axios
)
{
this
.
moduleName
=
'rootModule'
this
.
axios
=
_axios
||
(
axios__WEBPACK_IMPORTED_MODULE_0___default
())
}
filterEmptyValue
(
obj
)
{
...
...
dist/hsWebHttpClient.min.js
View file @
85191aa2
This source diff could not be displayed because it is too large. You can
view the blob
instead.
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