vue.js:634 [Vue warn]: Avoid mutating a prop directly since the value will be overwritten wheneve

vue.js:634 [Vue warn]: 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: "childData"

父组件向子组件传递值,子组件修改后传递到父组件报错

问题没解决:v2.6.10报错,而v2.5.17不报错

有错误提示,但效果出来了

发布了64 篇原创文章 · 获赞 9 · 访问量 11万+

猜你喜欢

转载自blog.csdn.net/eadela/article/details/105523475