在页面传输中,遇见此报错 : 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: “selectType”
一开始觉得没有问题啊,从父组件传输的在props上啊,但是看这个提示selectType的数据是自身组件的数据,不需要从父组件获取,所以把selectType定义数据写在data中即可