From f6a21bf37ef56ecab88652b1449da63f73b9648a Mon Sep 17 00:00:00 2001 From: Mila <Mila@pollex.com.tw> Date: 星期二, 16 十一月 2021 20:59:28 +0800 Subject: [PATCH] update 我的顧問清單: 使用 store 存放 consultantList 以及新增顧問、移除顧問的狀態控制 --- PAMapp/pages/myConsultantList/consultantList.vue | 7 +------ 1 files changed, 1 insertions(+), 6 deletions(-) diff --git a/PAMapp/pages/myConsultantList/consultantList.vue b/PAMapp/pages/myConsultantList/consultantList.vue index ba32b8c..10433d4 100644 --- a/PAMapp/pages/myConsultantList/consultantList.vue +++ b/PAMapp/pages/myConsultantList/consultantList.vue @@ -2,7 +2,6 @@ <div> <ConsultantList :agents="pageList" - @removeAgent="removeAgent" ></ConsultantList> <UiPagination @@ -13,7 +12,7 @@ </template> <script lang="ts"> -import { Vue, Component, Prop, Emit, Getter } from 'nuxt-property-decorator'; +import { Vue, Component, Prop, Getter } from 'nuxt-property-decorator'; import { Consultants } from '~/assets/ts/api/consultant'; @Component @@ -21,10 +20,6 @@ @Prop() consultantList!: Consultants[]; @Getter isLogin!: boolean; pageList: Consultants[] = []; - - @Emit('remove') removeAgent(agentNo: number) { - return agentNo; - } changePage(pageList: Consultants[]) { this.pageList = pageList; -- Gitblit v1.8.0