Commit 0808e44f by 张立顺

feat 去掉post的删除逻辑 npm包上传配置修改

1 parent a70c9a7c
{
"name": "glsx-common",
"version": "2.10.1",
"description": "glsx common",
"main": "./dist/glsx-common.js",
"name": "glsk-common",
"version": "2.10.2",
"description": "glsk common",
"main": "./dist/glsk-common.js",
"private": false,
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
......
......@@ -47,10 +47,9 @@ Http.prototype.create = function () {
if (method == 'get') {
config.params = data
} else if (method == 'post') {
// 将 sdctag 从 data 移到 params
// 将 sdctag
if (data.sdctag) {
config.params = { ...config.params, sdctag: data.sdctag }
delete data.sdctag // 从 body 中删除 sdctag
}
if (config.headers['Content-Type'] == 'multipart/form-data') {
config.data = util.appendFormData(data)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!