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') }) },