From 42beea233cd7d041cbb206130f2c932461119d91 Mon Sep 17 00:00:00 2001 From: Tomas <tomasysh@gmail.com> Date: 星期三, 19 一月 2022 16:10:11 +0800 Subject: [PATCH] clean code --- PAMapp/components/Client/ClientCard.vue | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/PAMapp/components/Client/ClientCard.vue b/PAMapp/components/Client/ClientCard.vue index 6afbe92..f203dd0 100644 --- a/PAMapp/components/Client/ClientCard.vue +++ b/PAMapp/components/Client/ClientCard.vue @@ -210,7 +210,7 @@ updateMyAppointmentList!: (data: Appointment) => void; @appointmentStore.Action - setAppointmentDetail!: (appointmentId: number) => Promise<Appointment>; + getAppointmentDetail!: (appointmentId: number) => Promise<Appointment>; @appointmentStore.Getter appointmentProgress!: ContactStatus; @@ -256,7 +256,7 @@ ////////////////////////////////////////////////////////////////////// viewAppointmentDetail(): void { - this.setAppointmentDetail(this.client.id).then((_) => { + this.getAppointmentDetail(this.client.id).then((_) => { this.$router.push(`/appointment/${this.client.id}`); }); } -- Gitblit v1.8.0