As follows, how to get children and then update them to father.children, so that the page can be displayed in a list
state: {
father: [
{
name: 'wang',
children: []
}
]
}
action: {
getChildren(fatherId).then(children => {
// 获得children,如何更新到father.children中
});
}
That’s about it, let’s take a look at the documentation