1.Invalid default value for prop "options": Props with type Object/Array must use a factory
.(props default 数组/对象的默认值应当由一个工厂函数返回)
错误写法
add:{
type:Object,
default:{}
}
正确写法
add:{
type:Object,
default:()=>{}
}