Obsidian/文档/欢迎.md

48 lines
730 B
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

这是你的新*仓库*。
写点笔记,[[创建链接]],或者试一试[导入器](https://help.obsidian.md/Plugins/Importer)插件!
当你准备好了,就将该笔记文件删除,使这个仓库为你所用。
```typescript
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
  }
})
```