seller: { type: Object, default() { return {} } } sellerArr: { type: Array, default: [] }当父组件没有传这个值或者值是空时,输出的话,返回:

下面这种是错误的
seller: { type: Object, default: () => {} }当父组件没有传这个值或者值是空时,输出的话,这时是返回underfind,在template中获取里面的值时,就报错
部分素材资源来源网站,本站提供免费下载,如有侵权请联系站长马上删除!