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

62 阅读1分钟

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