Skip to content

Commit

Permalink
fix: only show followup when there's any
Browse files Browse the repository at this point in the history
  • Loading branch information
Yukaii committed Apr 13, 2022
1 parent 5f6a226 commit 5e712d4
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/components/FactoryDetailPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -106,15 +106,17 @@
<p style="line-height: 24px;">{{ desc.others }}</p>
</div>

<h3 class="mb-1">政府回應</h3>
<template v-if="factoryFollowups.length > 0">
<h3 class="mb-1">政府回應</h3>

<div v-for="(followup, index) in factoryFollowups" class="mt-2" :key="index" style="font-size: 14px">
<p class="color-gray-light mb-1">
{{ new Date(followup.created_at).toLocaleDateString() }}
</p>
<div v-for="(followup, index) in factoryFollowups" class="mt-2" :key="index" style="font-size: 14px">
<p class="color-gray-light mb-1">
{{ new Date(followup.created_at).toLocaleDateString() }}
</p>

<p style="line-height: 24px;">{{ followup.note }}</p>
</div>
<p style="line-height: 24px;">{{ followup.note }}</p>
</div>
</template>
</div>
</div>
</div>
Expand Down

0 comments on commit 5e712d4

Please sign in to comment.