解决问题: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的值。

原文地址:https://www.cnblogs.com/sylys/p/13552908.html