//
<h4>{{ orderInfo.OrderItems[0].GoodsName }}</h4>
//
props: {
list: {
type: Object,
required: true,
default: () => ({
OrderTrackInfo: [],
OrderInfo: {},
OrderItems: [],
}),
},
},
computed: {
orderInfo() {
return this.list.OrderInfo || {};
},
logisticsList() {
return this.list.OrderTrackInfo;
},
orderItems() {
// 0,
return this.list.OrderInfo.OrderItems[0] || {};
},
},
will still report undefined errors,