wheneve专题

如何解决子组件不能修改父组件传来的值的需求 报错报错Avoid mutating a prop directly since the value will be overwritten wheneve

文章目录 前言一、官方文档:二·、具体的解决方法实现:总结 前言 报错Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property bas