草庐IT

googleInfos

全部标签

javascript - 在具有多个嵌套对象的对象中使用 Vue.set

我正在尝试使用Vue.set()更新Vue2中的状态对象。这是对象的样子:state:{entries:[//entry1fields:{someProperties:''//hereIwouldliketoaddanotherpropertynamed'googleInfos'}],[//entry2fields:{someProperties:''//hereIwouldliketoaddanotherpropertynamed'googleInfos'}]}到目前为止,我正在用这个突变更新它。我正在分别改变每个条目,因为它们有不同的内容。ADD_GOOGLE_INFOS(stat