@fonixtree/magic-design 1.0.89 → 1.0.90
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.
|
@@ -262,8 +262,11 @@ function (_super) {
|
|
|
262
262
|
_this.getData = function () {
|
|
263
263
|
return __awaiter(_this, void 0, void 0, function () {
|
|
264
264
|
var res, pageId, list;
|
|
265
|
-
|
|
266
|
-
|
|
265
|
+
|
|
266
|
+
var _a;
|
|
267
|
+
|
|
268
|
+
return __generator(this, function (_b) {
|
|
269
|
+
switch (_b.label) {
|
|
267
270
|
case 0:
|
|
268
271
|
return [4
|
|
269
272
|
/*yield*/
|
|
@@ -274,9 +277,9 @@ function (_super) {
|
|
|
274
277
|
})];
|
|
275
278
|
|
|
276
279
|
case 1:
|
|
277
|
-
res =
|
|
280
|
+
res = _b.sent();
|
|
278
281
|
pageId = window.magicDesign.pageId || '';
|
|
279
|
-
list = res.pageInfo.list || [];
|
|
282
|
+
list = ((_a = res.pageInfo) === null || _a === void 0 ? void 0 : _a.list) || [];
|
|
280
283
|
|
|
281
284
|
if (!(0, _coreUtil.isDesignMode)()) {
|
|
282
285
|
(0, _storeUtil.setMagicStore)("bargain_" + pageId + "_" + this.props.panelProps.id, list);
|
|
@@ -262,8 +262,11 @@ function (_super) {
|
|
|
262
262
|
_this.getData = function () {
|
|
263
263
|
return __awaiter(_this, void 0, void 0, function () {
|
|
264
264
|
var res, pageId, list;
|
|
265
|
-
|
|
266
|
-
|
|
265
|
+
|
|
266
|
+
var _a;
|
|
267
|
+
|
|
268
|
+
return __generator(this, function (_b) {
|
|
269
|
+
switch (_b.label) {
|
|
267
270
|
case 0:
|
|
268
271
|
return [4
|
|
269
272
|
/*yield*/
|
|
@@ -274,9 +277,9 @@ function (_super) {
|
|
|
274
277
|
})];
|
|
275
278
|
|
|
276
279
|
case 1:
|
|
277
|
-
res =
|
|
280
|
+
res = _b.sent();
|
|
278
281
|
pageId = window.magicDesign.pageId || '';
|
|
279
|
-
list = res.pageInfo.list || [];
|
|
282
|
+
list = ((_a = res.pageInfo) === null || _a === void 0 ? void 0 : _a.list) || [];
|
|
280
283
|
|
|
281
284
|
if (!(0, _coreUtil.isDesignMode)()) {
|
|
282
285
|
(0, _storeUtil.setMagicStore)("bargain_" + pageId + "_" + this.props.panelProps.id, list);
|