saraphimelvis

772 经验值

在最后的那段vue的代码中,我收到一个warning,没有办法直接编辑count参数。

“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: "count" ”

请问应该如何修改vue的代码?