From f7daa75b1e42a107d3befc0c6e798568ceac1dda Mon Sep 17 00:00:00 2001
From: Tomas <tomasysh@gmail.com>
Date: 星期日, 14 八月 2022 22:45:49 +0800
Subject: [PATCH] fix: requirement 確認有值再執行 split(), 畫面上無值則顯示 '--'

---
 PAMapp/components/Consultant/ConsultantCard.vue |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/PAMapp/components/Consultant/ConsultantCard.vue b/PAMapp/components/Consultant/ConsultantCard.vue
index 6c9bcd2..464c572 100644
--- a/PAMapp/components/Consultant/ConsultantCard.vue
+++ b/PAMapp/components/Consultant/ConsultantCard.vue
@@ -76,7 +76,7 @@
                     <p>�批嚗{gender}}</p>
                     <p>撟湧翩嚗{appointmentDetail.age | toAgeLabel }}</p>
                     <p>�璆哨�{appointmentDetail.job}}</p>
-                    <p>��瘙�{appointmentDetail.requirement.split(',').join('��')}}</p>
+                    <p>��瘙�{appointmentDetail.requirement ? appointmentDetail.requirement.split(',').join('��') : '--'}}</p>
                     <p
                         v-for="(item, index) in hopeContactTime"
                         :key="index"

--
Gitblit v1.8.0