Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
npm
/
glsx-common
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 0808e44f
authored
Sep 09, 2025
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat 去掉post的删除逻辑 npm包上传配置修改
1 parent
a70c9a7c
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
6 deletions
dist/glsx-common.js
package.json
src/http.js
dist/glsx-common.js
View file @
0808e44
This diff is collapsed.
Click to expand it.
package.json
View file @
0808e44
{
{
"name"
:
"gls
x
-common"
,
"name"
:
"gls
k
-common"
,
"version"
:
"2.10.
1
"
,
"version"
:
"2.10.
2
"
,
"description"
:
"gls
x
common"
,
"description"
:
"gls
k
common"
,
"main"
:
"./dist/gls
x
-common.js"
,
"main"
:
"./dist/gls
k
-common.js"
,
"private"
:
false
,
"private"
:
false
,
"scripts"
:
{
"scripts"
:
{
"test"
:
"echo
\"
Error: no test specified
\"
&& exit 1"
,
"test"
:
"echo
\"
Error: no test specified
\"
&& exit 1"
,
...
...
src/http.js
View file @
0808e44
...
@@ -47,10 +47,9 @@ Http.prototype.create = function () {
...
@@ -47,10 +47,9 @@ Http.prototype.create = function () {
if
(
method
==
'get'
)
{
if
(
method
==
'get'
)
{
config
.
params
=
data
config
.
params
=
data
}
else
if
(
method
==
'post'
)
{
}
else
if
(
method
==
'post'
)
{
// 将 sdctag
从 data 移到 params
// 将 sdctag
if
(
data
.
sdctag
)
{
if
(
data
.
sdctag
)
{
config
.
params
=
{
...
config
.
params
,
sdctag
:
data
.
sdctag
}
config
.
params
=
{
...
config
.
params
,
sdctag
:
data
.
sdctag
}
delete
data
.
sdctag
// 从 body 中删除 sdctag
}
}
if
(
config
.
headers
[
'Content-Type'
]
==
'multipart/form-data'
)
{
if
(
config
.
headers
[
'Content-Type'
]
==
'multipart/form-data'
)
{
config
.
data
=
util
.
appendFormData
(
data
)
config
.
data
=
util
.
appendFormData
(
data
)
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment