Avoid mutating a prop directly since the value will be overwritten whenever the parent component...

报错信息:
在这里插入图片描述
原因:在子组件中修改了父组件传过来的参数(props中的数据),这是不允许的
修改方式:事件传递(this.$emit),在父组件中修改

猜你喜欢

转载自blog.csdn.net/qq_43483403/article/details/120039568