zhaoke 1 سال پیش
والد
کامیت
9430b661c0
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      src/views/newBagDetails/components/baggageView.vue

+ 2 - 2
src/views/newBagDetails/components/baggageView.vue

@@ -252,8 +252,8 @@ export default {
           const { actualTakeOffTime, estimateTakeOffTime, scheduleTakeOffTime, actualLandInTime, estimateLandInTime, scheduleLandInTime } = itemObj
           newObj.newTakeoff_time = actualTakeOffTime ? actualTakeOffTime : estimateTakeOffTime ? estimateTakeOffTime : scheduleTakeOffTime
           newObj.newLand_time = actualLandInTime ? actualLandInTime : estimateLandInTime ? estimateLandInTime : scheduleLandInTime
-          newObj.takeTime = newObj.newTakeoff_time.split('T').at(-1)
-          newObj.landTime = newObj.newLand_time.split('T').at(-1)
+          newObj.takeTime = newObj.newTakeoff_time ? newObj.newTakeoff_time.split('T').at(-1) : newObj.newTakeoff_time
+          newObj.landTime = newObj.newLand_time ? newObj.newLand_time.split('T').at(-1) : newObj.newLand_time
           newArr[index] = Object.assign(newArr[index], newObj)
         }
       })