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: “seat”
组件内不能修改props的值,同时修改的值也不会同步到组件外层,父组件方不知道子组件内部当前的状态是什么。 因 […]