如下,如何獲取children然后更新到father.children中,頁面就可以列表展示了state: { father: [ { name: 'wang', children: [] } ]}action: { getChildren(fatherId).then(children => { // 獲得children,如何更新到father.children中 });}
一個vuex的問題
慕容3067478
2018-11-16 14:10:17