From 2cc2bc3ef955dd4335890b759fce50d8f61bcbce Mon Sep 17 00:00:00 2001 From: sunzehua Date: Mon, 9 Sep 2024 14:59:32 +0800 Subject: [PATCH] bug --- src/views/bookingcabin/CabinManagement/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/bookingcabin/CabinManagement/index.vue b/src/views/bookingcabin/CabinManagement/index.vue index 4e83062e..0c61468a 100644 --- a/src/views/bookingcabin/CabinManagement/index.vue +++ b/src/views/bookingcabin/CabinManagement/index.vue @@ -166,7 +166,7 @@ const [registerTable, { reload, setLoading, getForm, getSelectRows, setProps, se }) arr.splice(i, 1) } - if( arr[i].bookingSlotSaleInfoList.length == 1){ + if (arr[i].bookingSlotSaleInfoList && arr[i].bookingSlotSaleInfoList.length == 1) { arr[i].op = arr[i].bookingSlotSaleInfoList[0].op arr[i].customername = arr[i].bookingSlotSaleInfoList[0].customername arr[i].custservice = arr[i].bookingSlotSaleInfoList[0].custservice @@ -184,7 +184,7 @@ const [registerTable, { reload, setLoading, getForm, getSelectRows, setProps, se setProps({ showIndexColumn: false, }), - resolve({ data: arr, total: res.count }) + resolve({ data: arr, total: res.count }) optionsStore.getOptionsByCode('GetClientPortSelectList') }) },