ucservice 2.0.4 → 2.0.6

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.
@@ -31450,6 +31450,13 @@ const loadJson = function (url, param, backSuccfn, async, method, headers, conte
31450
31450
  if (contentType) Object.assign(ajaxContent, {
31451
31451
  contentType
31452
31452
  });
31453
+
31454
+ if (contentType && contentType.indexOf('application/json') != -1) {
31455
+ Object.assign(ajaxContent, {
31456
+ data: JSON.stringify(data)
31457
+ });
31458
+ }
31459
+
31453
31460
  $.ajax(ajaxContent).fail(function (jqXHR, sts) {
31454
31461
  console.error('加载数据失败:' + sts + ", " + url);
31455
31462
  }).done(function (ret) {
Binary file