解决问题:Avoid mutating a prop directly since the value will be overwritten whenever the parent component ...

报错:Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's value. Prop being mutated: "treeData"

通过props传递给子组件的treeData,不能在子组件内部修改props中的treeData的值。

posted @ 2020-08-24 11:35  鸣人卷~~  阅读(1606)  评论(0编辑  收藏  举报