ztxkui 2.2.9 → 2.3.0
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.
|
@@ -39,6 +39,7 @@ import debounce from 'lodash/debounce';
|
|
|
39
39
|
var enhanceSelectCatchObj = {};
|
|
40
40
|
// 获取接口数据
|
|
41
41
|
function getData(request, options) {
|
|
42
|
+
var _a;
|
|
42
43
|
if (typeof request === 'function') {
|
|
43
44
|
if (typeof options.params === 'string') {
|
|
44
45
|
try {
|
|
@@ -48,7 +49,7 @@ function getData(request, options) {
|
|
|
48
49
|
console.log(err);
|
|
49
50
|
}
|
|
50
51
|
}
|
|
51
|
-
if (options.
|
|
52
|
+
if (((_a = options === null || options === void 0 ? void 0 : options.method) === null || _a === void 0 ? void 0 : _a.toUpperCase()) === 'POST') {
|
|
52
53
|
options.data = options.params;
|
|
53
54
|
Reflect.deleteProperty(options, 'params');
|
|
54
55
|
}
|