From 505f666d3ecf3688778c079a8bbfb366d695cf22 Mon Sep 17 00:00:00 2001 From: wayne <wayne8692wayne8692@gmail.com> Date: 星期五, 12 十一月 2021 17:32:08 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- PAMapp/pages/myConsultantList/consultantList.vue | 16 +++++++--------- 1 files changed, 7 insertions(+), 9 deletions(-) diff --git a/PAMapp/pages/myConsultantList/consultantList.vue b/PAMapp/pages/myConsultantList/consultantList.vue index c46c2f8..ba32b8c 100644 --- a/PAMapp/pages/myConsultantList/consultantList.vue +++ b/PAMapp/pages/myConsultantList/consultantList.vue @@ -13,24 +13,22 @@ </template> <script lang="ts"> -import { Vue, Component, Prop, Emit } from 'nuxt-property-decorator'; -import { Agents } from '~/plugins/api/home'; +import { Vue, Component, Prop, Emit, Getter } from 'nuxt-property-decorator'; +import { Consultants } from '~/assets/ts/api/consultant'; @Component export default class ConsultantPage extends Vue { - @Prop() consultantList!: Agents[]; - pageList: Agents[] = []; + @Prop() consultantList!: Consultants[]; + @Getter isLogin!: boolean; + pageList: Consultants[] = []; - @Emit('remove') remove(agentNo: number) { + @Emit('remove') removeAgent(agentNo: number) { return agentNo; } - changePage(pageList: Agents[]) { + changePage(pageList: Consultants[]) { this.pageList = pageList; } - removeAgent(agentNo: number) { - this.remove(agentNo); - } } </script> \ No newline at end of file -- Gitblit v1.8.0