Skip to content

Commit

Permalink
feat: add buy log link
Browse files Browse the repository at this point in the history
  • Loading branch information
yjl9903 committed May 3, 2024
1 parent 743e14e commit a4eafa0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pages/product/[city]/[name]/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ if (!product) {
<h1 class="font-bold text-lg mb-4">商品 {{ cityName }} - {{ productName }}</h1>

<div class="mb-4 space-y-2">
<NuxtLink
:to="`/transaction/${product.city}/${product.name}/${product.city}`"
class="text-link"
>{{ product.city }} 一 {{ product.name }} → {{ product.city }}</NuxtLink>
<div v-for="tr in product.transactions" :key="tr.targetCity">
<NuxtLink
:to="`/transaction/${tr.sourceCity}/${tr.name}/${tr.targetCity}`"
Expand Down

0 comments on commit a4eafa0

Please sign in to comment.