eoss-mobiles 0.2.21 → 0.2.22

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/lib/checkbox.js CHANGED
@@ -1744,18 +1744,19 @@ var axios_ajax = function ajax(url) {
1744
1744
  withCredentials: false
1745
1745
  });
1746
1746
  http.interceptors.request.use(function (config) {
1747
- if (type === 'post' && !format) {
1748
- config.params = external_qs_default.a.stringify(params.params || params);
1749
- if (!config.headers['content-type'] && !headers['Content-Type']) {
1750
- config.headers['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
1751
- }
1752
- } else {
1753
- if (!config.headers['content-type'] && !headers['Content-Type']) {
1754
- config.headers['content-type'] = 'application/json;charset=UTF-8';
1747
+ if ((params.params || params) instanceof FormData === false) {
1748
+ if (type === 'post' && !format) {
1749
+ config.params = external_qs_default.a.stringify(params.params || params);
1750
+ if (!config.headers['content-type'] && !headers['Content-Type']) {
1751
+ config.headers['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
1752
+ }
1753
+ } else {
1754
+ if (!config.headers['content-type'] && !headers['Content-Type']) {
1755
+ config.headers['content-type'] = 'application/json;charset=UTF-8';
1756
+ }
1757
+ config.params = params.params || params;
1755
1758
  }
1756
- config.params = params.params || params;
1757
1759
  }
1758
-
1759
1760
  if (util["a" /* default */].getStorage('token')) {
1760
1761
  config.headers.Authorization = util["a" /* default */].getStorage('token');
1761
1762
  }
@@ -2962,18 +2962,19 @@ var axios_ajax = function ajax(url) {
2962
2962
  withCredentials: false
2963
2963
  });
2964
2964
  http.interceptors.request.use(function (config) {
2965
- if (type === 'post' && !format) {
2966
- config.params = external_qs_default.a.stringify(params.params || params);
2967
- if (!config.headers['content-type'] && !headers['Content-Type']) {
2968
- config.headers['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
2969
- }
2970
- } else {
2971
- if (!config.headers['content-type'] && !headers['Content-Type']) {
2972
- config.headers['content-type'] = 'application/json;charset=UTF-8';
2965
+ if ((params.params || params) instanceof FormData === false) {
2966
+ if (type === 'post' && !format) {
2967
+ config.params = external_qs_default.a.stringify(params.params || params);
2968
+ if (!config.headers['content-type'] && !headers['Content-Type']) {
2969
+ config.headers['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
2970
+ }
2971
+ } else {
2972
+ if (!config.headers['content-type'] && !headers['Content-Type']) {
2973
+ config.headers['content-type'] = 'application/json;charset=UTF-8';
2974
+ }
2975
+ config.params = params.params || params;
2973
2976
  }
2974
- config.params = params.params || params;
2975
2977
  }
2976
-
2977
2978
  if (util.getStorage('token')) {
2978
2979
  config.headers.Authorization = util.getStorage('token');
2979
2980
  }
@@ -20356,7 +20357,7 @@ if (typeof window !== 'undefined' && window.Vue) {
20356
20357
  }
20357
20358
 
20358
20359
  /* harmony default export */ var src = __webpack_exports__["default"] = ({
20359
- version: '0.2.21',
20360
+ version: '0.2.22',
20360
20361
  install: install,
20361
20362
  Button: packages_button,
20362
20363
  ButtonGroup: button_group,
package/lib/flow.js CHANGED
@@ -1740,18 +1740,19 @@ var axios_ajax = function ajax(url) {
1740
1740
  withCredentials: false
1741
1741
  });
1742
1742
  http.interceptors.request.use(function (config) {
1743
- if (type === 'post' && !format) {
1744
- config.params = external_qs_default.a.stringify(params.params || params);
1745
- if (!config.headers['content-type'] && !headers['Content-Type']) {
1746
- config.headers['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
1747
- }
1748
- } else {
1749
- if (!config.headers['content-type'] && !headers['Content-Type']) {
1750
- config.headers['content-type'] = 'application/json;charset=UTF-8';
1743
+ if ((params.params || params) instanceof FormData === false) {
1744
+ if (type === 'post' && !format) {
1745
+ config.params = external_qs_default.a.stringify(params.params || params);
1746
+ if (!config.headers['content-type'] && !headers['Content-Type']) {
1747
+ config.headers['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
1748
+ }
1749
+ } else {
1750
+ if (!config.headers['content-type'] && !headers['Content-Type']) {
1751
+ config.headers['content-type'] = 'application/json;charset=UTF-8';
1752
+ }
1753
+ config.params = params.params || params;
1751
1754
  }
1752
- config.params = params.params || params;
1753
1755
  }
1754
-
1755
1756
  if (util["a" /* default */].getStorage('token')) {
1756
1757
  config.headers.Authorization = util["a" /* default */].getStorage('token');
1757
1758
  }