From 6bbef91c402eaa58b8a4d8f11c466a39802ca0ca Mon Sep 17 00:00:00 2001 From: 劉鈞霖 <benson@gmail.com> Date: 星期二, 28 十二月 2021 14:50:13 +0800 Subject: [PATCH] [ Ref ] : 重構 共用資料夾 相關元件 --- PAMapp/components/Consultant/ConsultantList.vue | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/PAMapp/components/Consultant/ConsultantList.vue b/PAMapp/components/Consultant/ConsultantList.vue index 45e8a0a..06ccd84 100644 --- a/PAMapp/components/Consultant/ConsultantList.vue +++ b/PAMapp/components/Consultant/ConsultantList.vue @@ -1,6 +1,5 @@ <template> <div> - <template v-if="agentList.length > 0"> <ConsultantCard v-for="(agent, index) in agentList" @@ -23,10 +22,9 @@ </template> <script lang="ts"> -import { Vue, Component, Prop } from 'nuxt-property-decorator'; - -import authService from '~/shared/services/auth.service'; import { Consultant } from '~/shared/models/consultant.model'; +import { Vue, Component, Prop } from 'nuxt-property-decorator'; +import authService from '~/shared/services/auth.service'; @Component export default class ConsultantList extends Vue { @@ -38,6 +36,8 @@ isUserLogin = false; + ////////////////////////////////////////////////////////////////////// + get agentList(){ return this.agents.map((agentDto)=> ({...agentDto,customerScore:0,}) -- Gitblit v1.8.0