保誠-保戶業務員媒合平台
Mila
2022-01-24 278a64e02f22d46ec5652d1c3e0906a23daf120c
update: TODO#134657 排序通知清單
修改1個檔案
4 ■■■ 已變更過的檔案
PAMapp/store/index.ts 4 ●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程
PAMapp/store/index.ts
@@ -150,7 +150,9 @@
    @Action
    storeMyPersonalNotification() {
        reviewsService.getMyPersonalNotification().then(data => {
            this.context.commit('updateNotification', data);
            const sortData = data
                .sort((preItem, nextItem) => +new Date(nextItem.createdDate) - +new Date(preItem.createdDate))
            this.context.commit('updateNotification', sortData);
        })
    }