From f1c88aa1b2c67f3bb1575431cad5091989d54853 Mon Sep 17 00:00:00 2001
From: Tomas <tomasysh@gmail.com>
Date: 星期四, 10 三月 2022 12:20:50 +0800
Subject: [PATCH] fix#136510: 顧問後台更新資料後,前端客戶點選重新整理,並沒有重新更新頁面資訊

---
 PAMapp/pages/agentInfo/_agentNo.vue |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/PAMapp/pages/agentInfo/_agentNo.vue b/PAMapp/pages/agentInfo/_agentNo.vue
index 6602a21..972609c 100644
--- a/PAMapp/pages/agentInfo/_agentNo.vue
+++ b/PAMapp/pages/agentInfo/_agentNo.vue
@@ -1,5 +1,5 @@
 <template>
-    <div>
+    <div v-if="!!agentInfo">
       <el-row
         type="flex"
         justify="center">
@@ -260,11 +260,13 @@
   }
 
   get agentName(): string {
-    return `${this.agentInfo.name}(${this.agentInfo.role})`;
+    if (!this.agentInfo) return '';
+    return `${this.agentInfo?.name}(${this.agentInfo?.role})`;
   }
 
   get displayCommunicationStyleList(): string[] {
-    return this.agentInfo.communicationStyle.split('��').filter((item) => item);
+    if (!this.agentInfo) return [];
+    return this.agentInfo?.communicationStyle.split('��').filter((item) => item);
   }
 
 }

--
Gitblit v1.8.0