Props with type Object/Array must use a factory function to return the default value.报错信息
解决办法:
props: {
changeData:{
type: Object,
// 对象或数组默认值必须从一个工厂函数获取
default: ()=>{ return {} }
}
}, // 对象object
props: {
changeData: {
type: Array,
default: () => [],
},
} //数组 array