730 B
730 B
这是你的新仓库。
当你准备好了,就将该笔记文件删除,使这个仓库为你所用。
const getStatusText = (status: number) => {
return statusMap[status] || '未知状态'
}
const orderId = ref(parseInt(String(route.params.id)))
// 监听路由参数变化
watch(() => route.params.id, (newId) => {
orderId.value = parseInt(String(newId))
})
const order = computed(() => {
return orderStore.orders.find(o => o.orderId === orderId.value)
})
onMounted(() => {
if (!order.value) {
// Handle case when order is not found
}
})