Vue项目报错: Avoid mutating a prop directly since the value will be overwritten whenever the parent comp
Vue项目报错: Avoid mutating a prop directly since the value will be overwritten whenever the parent component原因:父组件使用props向子组件传值后,子组件直接修改了传过来的props中的值解决办法:父组件传值后,在子组件中使用一个新的变量来存传入的值和进行修改。...