fast-vue-multi-pages 1.0.19 → 1.0.20
Sign up to get free protection for your applications and to get access to all the features.
@@ -128,7 +128,15 @@ var FastVueMultiHttp;
|
|
128
128
|
else {
|
129
129
|
for (let paramKey in param) {
|
130
130
|
if (param.hasOwnProperty(paramKey)) {
|
131
|
-
|
131
|
+
let value = param[paramKey];
|
132
|
+
if (lodash_1.default.isArray(value)) {
|
133
|
+
for (let valueElement of value) {
|
134
|
+
newParams.append(paramKey, valueElement);
|
135
|
+
}
|
136
|
+
}
|
137
|
+
else {
|
138
|
+
newParams.append(paramKey, param[paramKey]);
|
139
|
+
}
|
132
140
|
}
|
133
141
|
}
|
134
142
|
}
|
@@ -271,7 +279,7 @@ var FastVueMultiHttp;
|
|
271
279
|
}
|
272
280
|
}
|
273
281
|
/**
|
274
|
-
*
|
282
|
+
* 获取接口的全局参数
|
275
283
|
*/
|
276
284
|
static getFinalParams() {
|
277
285
|
let justFinalParams = {};
|
@@ -130,7 +130,16 @@ define(["require", "exports", "tslib", "axios", "lodash", "../vue/FastVueMultiCo
|
|
130
130
|
else {
|
131
131
|
for (var paramKey in param) {
|
132
132
|
if (param.hasOwnProperty(paramKey)) {
|
133
|
-
|
133
|
+
var value = param[paramKey];
|
134
|
+
if (lodash_1.default.isArray(value)) {
|
135
|
+
for (var _i = 0, value_1 = value; _i < value_1.length; _i++) {
|
136
|
+
var valueElement = value_1[_i];
|
137
|
+
newParams.append(paramKey, valueElement);
|
138
|
+
}
|
139
|
+
}
|
140
|
+
else {
|
141
|
+
newParams.append(paramKey, param[paramKey]);
|
142
|
+
}
|
134
143
|
}
|
135
144
|
}
|
136
145
|
}
|
@@ -277,7 +286,7 @@ define(["require", "exports", "tslib", "axios", "lodash", "../vue/FastVueMultiCo
|
|
277
286
|
}
|
278
287
|
};
|
279
288
|
/**
|
280
|
-
*
|
289
|
+
* 获取接口的全局参数
|
281
290
|
*/
|
282
291
|
Base.getFinalParams = function () {
|
283
292
|
var justFinalParams = {};
|