解决方法:在子组件中要对数据做处理时
将数据通过JSON.parse(JSON.stringify(this.lists))转换后 复制给子组件数据 再通过子组件去修改
var listDica = [].concat(JSON.parse(JSON.stringify(this.lists))) //this.lists是通过props传过来的数组
解决方法:在子组件中要对数据做处理时
将数据通过JSON.parse(JSON.stringify(this.lists))转换后 复制给子组件数据 再通过子组件去修改
var listDica = [].concat(JSON.parse(JSON.stringify(this.lists))) //this.lists是通过props传过来的数组