@titaui/pc 1.16.4 → 1.16.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.
|
@@ -363,9 +363,19 @@ var DynamicItemHeader = function DynamicItemHeader(_ref) {
|
|
|
363
363
|
}); // 暂时用title
|
|
364
364
|
|
|
365
365
|
if (typeof (mindData === null || mindData === void 0 ? void 0 : mindData.content) === 'string' && (mindData === null || mindData === void 0 ? void 0 : mindData.content) !== '') {
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
366
|
+
var _Motion$find;
|
|
367
|
+
|
|
368
|
+
var selectEmotionValue = 0;
|
|
369
|
+
|
|
370
|
+
if (JSON.parse(mindData.content || '{}').SelectedValues) {
|
|
371
|
+
var _JSON$parse;
|
|
372
|
+
|
|
373
|
+
selectEmotionValue = (_JSON$parse = JSON.parse(mindData.content || '{}')) === null || _JSON$parse === void 0 ? void 0 : _JSON$parse.SelectedValues[0];
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
setMindImg((_Motion$find = _constant.Motion.find(function (item) {
|
|
377
|
+
return item.id === selectEmotionValue;
|
|
378
|
+
})) === null || _Motion$find === void 0 ? void 0 : _Motion$find.img);
|
|
369
379
|
}
|
|
370
380
|
}
|
|
371
381
|
}, [dailyContent]);
|