autobots-commonlib 1.3.3 → 1.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.idea/workspace.xml +7 -2
- package/README.md +3 -0
- package/lib/QCRNetworkModule.js +2 -2
- package/package.json +1 -1
package/.idea/workspace.xml
CHANGED
|
@@ -4,7 +4,12 @@
|
|
|
4
4
|
<option name="autoReloadType" value="SELECTIVE" />
|
|
5
5
|
</component>
|
|
6
6
|
<component name="ChangeListManager">
|
|
7
|
-
<list default="true" id="30c1af58-4d10-4799-8434-f7c14eade97a" name="Default Changelist" comment=""
|
|
7
|
+
<list default="true" id="30c1af58-4d10-4799-8434-f7c14eade97a" name="Default Changelist" comment="更新版本号到1.3.3">
|
|
8
|
+
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
|
9
|
+
<change beforePath="$PROJECT_DIR$/README.md" beforeDir="false" afterPath="$PROJECT_DIR$/README.md" afterDir="false" />
|
|
10
|
+
<change beforePath="$PROJECT_DIR$/lib/QCRNetworkModule.js" beforeDir="false" afterPath="$PROJECT_DIR$/lib/QCRNetworkModule.js" afterDir="false" />
|
|
11
|
+
<change beforePath="$PROJECT_DIR$/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/package.json" afterDir="false" />
|
|
12
|
+
</list>
|
|
8
13
|
<option name="SHOW_DIALOG" value="false" />
|
|
9
14
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
10
15
|
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
|
@@ -314,7 +319,7 @@
|
|
|
314
319
|
<workItem from="1712919421559" duration="73000" />
|
|
315
320
|
<workItem from="1713170876054" duration="10998000" />
|
|
316
321
|
<workItem from="1715841212364" duration="699000" />
|
|
317
|
-
<workItem from="1716272524681" duration="
|
|
322
|
+
<workItem from="1716272524681" duration="8375000" />
|
|
318
323
|
</task>
|
|
319
324
|
<task id="LOCAL-00001" summary="1、增加新组件NewNavbar; 2、修改jump方法,增加一个参数;">
|
|
320
325
|
<created>1561551696357</created>
|
package/README.md
CHANGED
package/lib/QCRNetworkModule.js
CHANGED
|
@@ -136,7 +136,7 @@ async function asyncFetch(url: String, config: Object, params: Object, cacheFunc
|
|
|
136
136
|
const stringifiedParams = {};
|
|
137
137
|
if (params) {
|
|
138
138
|
Object.keys(params).forEach(key => {
|
|
139
|
-
if (typeof params[key] === 'undefined') {
|
|
139
|
+
if (typeof params[key] === 'undefined' || params[key] === null) {
|
|
140
140
|
stringifiedParams[key] = ""; // 将undefined值设为""
|
|
141
141
|
} else {
|
|
142
142
|
stringifiedParams[key] = String(params[key]);
|
|
@@ -241,7 +241,7 @@ async function asyncPostForm(url: String, headers: Object, form: Object, resolve
|
|
|
241
241
|
const stringifiedForms = {};
|
|
242
242
|
if (form) {
|
|
243
243
|
Object.keys(form).forEach(key => {
|
|
244
|
-
if (typeof form[key] === 'undefined') {
|
|
244
|
+
if (typeof form[key] === 'undefined' || form[key] === null) {
|
|
245
245
|
stringifiedForms[key] = ""; // 将undefined值设为""
|
|
246
246
|
} else {
|
|
247
247
|
stringifiedForms[key] = String(form[key]);
|