zhangafei 3 долоо хоног өмнө
parent
commit
f94f0a24e7

+ 3 - 1
src/views/home/CarArrive.vue

@@ -188,7 +188,9 @@ const arriveNo = ref('')
 // 获取目的地信息
 const getDestinationOptions = computed(() => {
   if (!vehicleInfo.value.ccmNo) return []
-  return destinationOptions[String(vehicleInfo.value.ccmNo)].map((oitem: MConfigProps) => oitem)
+  return destinationOptions[String(vehicleInfo.value.ccmNo)]
+    ? destinationOptions[String(vehicleInfo.value.ccmNo)].map((oitem: MConfigProps) => oitem)
+    : []
 })
 
 const carsOptions = ref<{ label: string; value: string }[]>([])