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

 出现这个问题是子组件更改了数据没在data定义然后又传回个父组件导致的

解决方法:

在data定义一个新数据,在watch去监听父传过来的值,然后新数据等于父传过来的值