1、更新數組:
that.$set(that.geoTreeBox[id].layergroup, i, {
id:i,
idview: "",
idtext:layergroup[i].idtext,
gdpurl:layergroup[i].gdpurl,
status: e
});
2、更新對象:
that.$set(that.geoTreeBox[id], "status", true);//"status"爲字符串,要加上引號,否則會增加一個屬性爲""的值