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: "kuow"
报错原因,父组件调用子组件传参数过去,子组件接收后改变该参数就报错
解决方法,在data里再定义一个变量接收,然后使用watch监听
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)