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
8fe4dbd6
Commit
8fe4dbd6
authored
May 01, 2022
by
何虹
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
e39d09ef
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
44 additions
and
1 deletion
+44
-1
.gitignore
.gitignore
+18
-0
hsWebHttpClient.js
dist/hsWebHttpClient.js
+25
-0
hsWebHttpClient.min.js
dist/hsWebHttpClient.min.js
+1
-1
No files found.
.gitignore
0 → 100644
View file @
8fe4dbd6
.DS_Store
node_modules
# local env files
.env.local
.env.*.local
# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
\ No newline at end of file
dist/hsWebHttpClient.js
View file @
8fe4dbd6
...
@@ -179,6 +179,31 @@ class Root {
...
@@ -179,6 +179,31 @@ class Root {
const
result
=
this
.
axios
(
aixosCtx
)
const
result
=
this
.
axios
(
aixosCtx
)
return
result
return
result
}
}
// 最原始的 protoRequest
protoRequest
(
options
=
{})
{
if
(
!
options
.
url
){
alert
(
'请传入url'
)
return
}
if
(
!
options
.
params
)
{
// 加一个默认的db_name
options
.
params
=
{
db_name
:
this
.
getDbName
()
}
}
else
if
(
options
.
params
&&
!
options
.
params
.
db_name
)
{
options
.
params
.
db_name
=
this
.
getDbName
()
}
// 删除问号参数上的token 和 _user_info
if
(
options
.
params
.
token
)
{
delete
options
.
params
.
token
}
if
(
options
.
params
.
_user_info
)
{
delete
options
.
params
.
_user_info
}
// 删除data中的空值
this
.
filterEmptyValue
(
options
.
data
)
return
this
.
axios
(
options
)
}
}
}
/* harmony default export */
__webpack_exports__
[
"default"
]
=
(
Root
);
/* harmony default export */
__webpack_exports__
[
"default"
]
=
(
Root
);
...
...
dist/hsWebHttpClient.min.js
View file @
8fe4dbd6
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