You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Vue warn]: 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.
#72
Open
smileyby opened this issue
May 25, 2021
· 0 comments
警告提示,组件之间传递的属性 prop 中的值不可修改
如果要对传递过来的值进行修改,我们可以通过computed根据props中的属性动态计算出一个值,来绑定和修改
The text was updated successfully, but these errors were encountered: