From 0fe113a6060bed9204c80725554d828da53f4735 Mon Sep 17 00:00:00 2001 From: qb <1191961160@qq.com> Date: Tue, 14 Jan 2025 09:32:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=85=8D=E9=80=81=E5=85=A8?= =?UTF-8?q?=E9=83=A8=E5=88=97=E8=A1=A8=E9=85=8D=E9=80=81=E5=8F=B8=E6=9C=BA?= =?UTF-8?q?=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../deliverylist/distributionDeliveryList.vue | 21 +++++++++---------- 1 file changed, 10 insertions(+), 11 deletions(-) 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); }); }); },