diff --git a/src/views/distribution/deliverylist/distributionDeliveryList.vue b/src/views/distribution/deliverylist/distributionDeliveryList.vue index b3b0608e..3083e6c2 100644 --- a/src/views/distribution/deliverylist/distributionDeliveryList.vue +++ b/src/views/distribution/deliverylist/distributionDeliveryList.vue @@ -716,17 +716,16 @@ export default { getDriverList(1, 10, '').then(res => { const data = res.data.data; let po = []; - if (data.records?.length) { - data.records.forEach(item => { - let a = { - dictKey: item.id, - dictValue: item.name, - }; - po.push(a); - }); - this.driverData = po; - rv(res.data.data.records); - } + + data.forEach(item => { + let a = { + dictKey: item.id, + dictValue: item.name, + }; + po.push(a); + }); + this.driverData = po; + rv(res.data.data.records); }); }); },