如下,如何获取children然后更新到father.children中,页面就可以列表展示了
state: {
father: [
{
name: 'wang',
children: []
}
]
action: {
getChildren(fatherId).then(children => {
// 获得children,如何更新到father.children中
});
一只斗牛犬
相关分类