<script setup lang="ts" name="Logistics">
import { getLogisticsInfo } from '@/api/order'
import type { Logistics } from '@/types/order'
import { ref, onMounted } from 'vue'
import { useRoute } from 'vue-router'
import AMapLoader from '@amap/amap-jsapi-loader'
import startImg from '@/assets/start.png'
import endImg from '@/assets/end.png'
import carImg from '@/assets/car.png'
window._AMapSecurityConfig = {
securityJsCode: '99240abf1188823cd88cfe635a521af3'
}
const route = useRoute()
const logisticsInfo = ref({} as Logistics)
onMounted(async () => {
const res = await getLogisticsInfo(route.params.id as string)
logisticsInfo.value = res.data
// 等数据回来了,我们