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
7864312c
Commit
7864312c
authored
Dec 17, 2020
by
何虹
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
挂在到this
parent
ce906c7e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
hsWebHttpClient.js
dist/hsWebHttpClient.js
+4
-4
hsWebHttpClient.min.js
dist/hsWebHttpClient.min.js
+1
-1
index.js
src/index.js
+4
-4
No files found.
dist/hsWebHttpClient.js
View file @
7864312c
...
...
@@ -40,16 +40,16 @@ class HttpClient {
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
api
=
{
}
//
const api = {
//
}
list
.
forEach
(
item
=>
{
api
[
item
.
moduleName
]
=
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'
)
{
api
[
`
${
k
}
`
]
=
root_prototype
[
k
]
this
[
`
${
k
}
`
]
=
root_prototype
[
k
]
}
})
}
...
...
dist/hsWebHttpClient.min.js
View file @
7864312c
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/index.js
View file @
7864312c
...
...
@@ -16,16 +16,16 @@ class HttpClient {
const
webChartConfig
=
new
WebChartConfig
(
root
)
const
ref
=
new
Ref
(
root
)
const
list
=
[
webQueryClient
,
billflow
,
system
,
webChartConfig
,
restful
,
ref
]
const
api
=
{
}
//
const api = {
//
}
list
.
forEach
(
item
=>
{
api
[
item
.
moduleName
]
=
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'
)
{
api
[
`
${
k
}
`
]
=
root_prototype
[
k
]
this
[
`
${
k
}
`
]
=
root_prototype
[
k
]
}
})
}
...
...
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