PAMapp/store/index.ts | ●●●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程 |
PAMapp/store/index.ts
@@ -115,7 +115,14 @@ @Action storeMyAppointmentReviewLog() { getMyReviewLog().then((data) => { this.context.commit('updateMyAppointmentReviewLog', data); const dataWithLatestDate = data.map((item) => { return { ...item, compareDate: new Date(item.lastModifiedDate) } }); const sortedData = dataWithLatestDate.sort((a, b) => +b.compareDate - +a.compareDate); this.context.commit('updateMyAppointmentReviewLog', sortedData); }); }