From 6e0a54160db0b7a67676688670d185dfa265854e Mon Sep 17 00:00:00 2001 From: HelenHuang <LinHuang@pollex.com.tw> Date: 星期五, 24 十二月 2021 13:19:20 +0800 Subject: [PATCH] fixed#132891: [顧問已聯絡] 顧問已聯絡清單 : 最新一筆的聯絡單 未排序在第一筆 --- PAMapp/pages/myAppointmentList/contactedList.vue | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/PAMapp/pages/myAppointmentList/contactedList.vue b/PAMapp/pages/myAppointmentList/contactedList.vue index 92ecd84..9b602ea 100644 --- a/PAMapp/pages/myAppointmentList/contactedList.vue +++ b/PAMapp/pages/myAppointmentList/contactedList.vue @@ -42,7 +42,7 @@ this.contactedList = (this.myAppointmentList || []) .filter(item => item.communicateStatus === 'contacted') .map((item) => ({...item, sortTime: new Date(item.contactTime)})) - .sort((prevItem, nextItem) => +nextItem - +prevItem); + .sort((prevItem, nextItem) => +nextItem.sortTime - +prevItem.sortTime); this.filterList = this.contactedList; } -- Gitblit v1.8.0