[Vue warn]: Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders.

 

And it can not change the quantity prop parent component synchronization, but let this component should submit events to the parent component, you can watch quantity variable, if the variable is changed to emit events, so there are they do not need to prop

 

https://blog.csdn.net/u014520745/article/details/75455979

 

Guess you like

Origin www.cnblogs.com/fairylee/p/10942047.html