@cqsjjb/jjb-react-admin-component 3.0.29 → 3.0.30
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.
|
@@ -152,7 +152,7 @@ function RenderText(props) {
|
|
|
152
152
|
value.load().then(res => res.json()).then(res => {
|
|
153
153
|
if (res.success) {
|
|
154
154
|
setOptions(res.data);
|
|
155
|
-
setText(value
|
|
155
|
+
setText(value?.selected?.map?.(i => `${i.key}&${i.label}`));
|
|
156
156
|
}
|
|
157
157
|
setLoading(false);
|
|
158
158
|
});
|
|
@@ -190,7 +190,7 @@ function RenderText(props) {
|
|
|
190
190
|
value.load().then(res => res.json()).then(res => {
|
|
191
191
|
if (res.success) {
|
|
192
192
|
setOptions(res.data);
|
|
193
|
-
setText(value
|
|
193
|
+
setText(value?.selected?.map?.(i => `${i.key}&${i.label}`));
|
|
194
194
|
}
|
|
195
195
|
setLoading(false);
|
|
196
196
|
});
|