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/pages/questionnaire/_agentNo.vue |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/PAMapp/pages/questionnaire/_agentNo.vue b/PAMapp/pages/questionnaire/_agentNo.vue
index 4e55158..553ccee 100644
--- a/PAMapp/pages/questionnaire/_agentNo.vue
+++ b/PAMapp/pages/questionnaire/_agentNo.vue
@@ -416,7 +416,9 @@
         return {
             ...appointmentInfo,
             hopeContactTime: hopeContactTime,
-            requirement: appointmentInfo.requirement.split(',')
+            requirement: appointmentInfo.requirement 
+                        ? appointmentInfo.requirement.split(',')
+                        : []
           }
       } else {
         return null;

--
Gitblit v1.8.0