From 7e05683e0cbe2aa990e8553d240ebc8570f86b75 Mon Sep 17 00:00:00 2001
From: Mila <Mila@pollex.com.tw>
Date: 星期三, 08 十二月 2021 10:49:46 +0800
Subject: [PATCH] update: 修改 ConsultantCard 欄位名稱

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

diff --git a/PAMapp/components/Consultant/ConsultantCard.vue b/PAMapp/components/Consultant/ConsultantCard.vue
index 46a9d5c..1d59d39 100644
--- a/PAMapp/components/Consultant/ConsultantCard.vue
+++ b/PAMapp/components/Consultant/ConsultantCard.vue
@@ -28,7 +28,7 @@
                         <div class="professionals">
                             <span
                                 class="professionalsTxt"
-                                v-for="(expertise, index) in expertises"
+                                v-for="(expertise, index) in agentInfo.expertise"
                                 :key="index"
                             >#{{expertise}}</span>
                         </div>
@@ -121,7 +121,7 @@
 
 <script lang="ts">
 import { Vue, Component, Prop, Action } from 'nuxt-property-decorator';
-import { getAppointmentDetail, UserReviewsConsultantsParams, userReviewsConsultants, cancelAppointment, AppointmentRequests  } from '~/assets/ts/api/consultant';
+import { getAppointmentDetail, UserReviewsConsultantsParams, userReviewsConsultants, cancelAppointment } from '~/assets/ts/api/consultant';
 import { Consultant, Appointment } from '~/assets/ts/models/consultant.model';
 import { isLogin } from '~/assets/ts/auth';
 import { isMobileDevice } from '~/assets/ts/device';
@@ -198,9 +198,6 @@
         return this.agentInfo.img;
     }
 
-    get expertises() {
-        return this.agentInfo.expertise ? this.agentInfo.expertise : this.agentInfo.expertise;
-    }
     get gender() {
         if (this.appointmentDetail.gender) {
             return this.appointmentDetail.gender === 'male' ? '���' : '憟單��';

--
Gitblit v1.8.0