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
391d738e
Commit
391d738e
authored
May 11, 2021
by
何虹
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
16ab227d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
5 deletions
+19
-5
hsWebHttpClient.js
dist/hsWebHttpClient.js
+9
-2
hsWebHttpClient.min.js
dist/hsWebHttpClient.min.js
+1
-1
root.js
src/root.js
+9
-2
No files found.
dist/hsWebHttpClient.js
View file @
391d738e
...
...
@@ -157,9 +157,16 @@ class Root {
if
(
aixosCtx
.
params
&&
aixosCtx
.
params
.
token
)
delete
aixosCtx
.
params
.
token
if
(
aixosCtx
.
params
&&
aixosCtx
.
params
.
_user_info
)
delete
aixosCtx
.
params
.
_user_info
// 给问号参数加上db_name,逻辑是 session中没有 就去取url上的
if
(
aixosCtx
.
params
&&!
aixosCtx
.
params
.
db_name
)
{
aixosCtx
.
params
.
db_name
=
this
.
getDbName
()
if
(
!
aixosCtx
.
params
)
{
// 问号参数不存在时加一个参数
aixosCtx
.
params
=
{
db_name
:
this
.
getDbName
()
}
}
else
{
if
(
aixosCtx
.
params
&&
!
aixosCtx
.
params
.
db_name
)
{
aixosCtx
.
params
.
db_name
=
this
.
getDbName
()
}
}
data
&&
(
aixosCtx
.
data
=
data
)
headers
&&
(
aixosCtx
.
headers
=
headers
)
const
result
=
this
.
axios
(
aixosCtx
)
...
...
dist/hsWebHttpClient.min.js
View file @
391d738e
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/root.js
View file @
391d738e
...
...
@@ -79,9 +79,16 @@ class Root {
if
(
aixosCtx
.
params
&&
aixosCtx
.
params
.
token
)
delete
aixosCtx
.
params
.
token
if
(
aixosCtx
.
params
&&
aixosCtx
.
params
.
_user_info
)
delete
aixosCtx
.
params
.
_user_info
// 给问号参数加上db_name,逻辑是 session中没有 就去取url上的
if
(
aixosCtx
.
params
&&!
aixosCtx
.
params
.
db_name
)
{
aixosCtx
.
params
.
db_name
=
this
.
getDbName
()
if
(
!
aixosCtx
.
params
)
{
// 问号参数不存在时加一个参数
aixosCtx
.
params
=
{
db_name
:
this
.
getDbName
()
}
}
else
{
if
(
aixosCtx
.
params
&&
!
aixosCtx
.
params
.
db_name
)
{
aixosCtx
.
params
.
db_name
=
this
.
getDbName
()
}
}
data
&&
(
aixosCtx
.
data
=
data
)
headers
&&
(
aixosCtx
.
headers
=
headers
)
const
result
=
this
.
axios
(
aixosCtx
)
...
...
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