解决方案:
watch的时候,对于对象的赋值,最好用深拷贝,即如下图:
watch:{ row: function (nv, ov) {var that = this;that.indata.row = JSON.parse(JSON.stringify(nv));//如果是对象,请用深入的for (var i in that.indata.row.ttlist) {that.$set(that.indata.row.ttlist[i], "sitindex", 0);//设置响应式}that.$forceUpdate();}
}