const testInitialState = Immutable.fromJS({
selectedIndex: -1,
componentsConfig: [
{
name: 'HS_Form',
key: 3,
config: {
inputs: {
value: [
{
label: '输入框一',
type: 'text'
},
{
label: '输入框二',
type: 'email'
},
{
label: '输入框三',
type: 'tel'
},
{
label: '请输入选择项',
type: 'radio',
value: ['男', '女']
}
]
}
}
}
]
})
比如我要修改componentsConfig里面key为3的对象的config属性的值,要怎么改呢,有点懵逼