ucservice 2.0.4 → 2.0.5
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/dist/ucservice.common.js +7 -0
- package/dist/ucservice.common.js.gz +0 -0
- package/dist/ucservice.common.js.map +1 -1
- package/dist/ucservice.umd.js +7 -0
- package/dist/ucservice.umd.js.gz +0 -0
- package/dist/ucservice.umd.js.map +1 -1
- package/dist/ucservice.umd.min.js +1 -1
- package/dist/ucservice.umd.min.js.gz +0 -0
- package/dist/ucservice.umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/ucservice.common.js
CHANGED
|
@@ -31441,6 +31441,13 @@ const loadJson = function (url, param, backSuccfn, async, method, headers, conte
|
|
|
31441
31441
|
if (contentType) Object.assign(ajaxContent, {
|
|
31442
31442
|
contentType
|
|
31443
31443
|
});
|
|
31444
|
+
|
|
31445
|
+
if (contentType.indexOf('application/json') != -1) {
|
|
31446
|
+
Object.assign(ajaxContent, {
|
|
31447
|
+
data: JSON.stringify(data)
|
|
31448
|
+
});
|
|
31449
|
+
}
|
|
31450
|
+
|
|
31444
31451
|
$.ajax(ajaxContent).fail(function (jqXHR, sts) {
|
|
31445
31452
|
console.error('加载数据失败:' + sts + ", " + url);
|
|
31446
31453
|
}).done(function (ret) {
|
|
Binary file
|