Select 组件的数据更新问题 #2946
Unanswered
hujiangang
asked this question in
Q&A
Replies: 1 comment
-
把返回的数字 1 变成字符串 '1' |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
一个Select组件,下拉目前如下:
field: 'SystemVersionID',
label: '系统版本',
component: 'Select',
componentProps: {
options: [
{
label: '测试服',
value: '1',
key: '1',
}
],
},
可是 服务器f返回的是 ret -> {"PlatformVersionID":1,"SystemVersionID":1}
直接设置 setFieldsValue(ret)
select 框中显示 1了,怎么样显示label的内容?
Beta Was this translation helpful? Give feedback.
All reactions