ywana-core8 0.0.27 → 0.0.32

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.
@@ -4449,12 +4449,15 @@ var TableAPI = function TableAPI(url) {
4449
4449
  console.log('filters', filters);
4450
4450
  var filterQuery = Object.keys(filters).reduce(function (query, key) {
4451
4451
  var value = filters[key];
4452
+ console.log(value);
4452
4453
 
4453
4454
  if (typeof value === 'boolean') {
4454
4455
  return query.concat(key + "=" + value + "&");
4455
4456
  } else if (Array.isArray(value)) {
4456
- var param = value.length === 0 ? '' : value.reduce(function (param, item) {
4457
- param.concat(key + "=" + item + "&");
4457
+ var param = value.length === 0 ? 'xxx=1&' : value.reduce(function (param, item) {
4458
+ param = param.concat(key + "=" + item + "&");
4459
+ console.log(item, param);
4460
+ return param;
4458
4461
  }, "");
4459
4462
  console.log(param);
4460
4463
  return query.concat(param);