使用prop嵌套多层传值时报错
[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.
解决办法:使用中间变量myshow,在watch中间监听变化通知爷爷组件
使用prop嵌套多层传值时报错
[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.
解决办法:使用中间变量myshow,在watch中间监听变化通知爷爷组件
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。