From 33a70b8c796b66f12a191823956b45fa590d4ff5 Mon Sep 17 00:00:00 2001 From: xieyonghong <18010623010@163.com> Date: Thu, 18 May 2023 15:36:45 +0800 Subject: [PATCH] fix: bug#13946 --- src/api/account/notificationRecord.ts | 2 +- src/views/account/NotificationRecord/index.vue | 8 +++++--- vite.config.ts | 6 +++--- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/api/account/notificationRecord.ts b/src/api/account/notificationRecord.ts index 25f14b70..286fa668 100644 --- a/src/api/account/notificationRecord.ts +++ b/src/api/account/notificationRecord.ts @@ -1,7 +1,7 @@ import server from '@/utils/request' // 获取记录列表 -export const getList_api = (data: object): any => server.get(`/notifications/_query`, encodeParams(data)) +export const getList_api = (data: object): any => server.post(`/notifications/_query`, data) // 获取未读记录列表 export const getListByUnRead_api = (data: object): any => server.post(`/notifications/_query`, data) // 修改记录状态 diff --git a/src/views/account/NotificationRecord/index.vue b/src/views/account/NotificationRecord/index.vue index e6a412aa..867dcbfa 100644 --- a/src/views/account/NotificationRecord/index.vue +++ b/src/views/account/NotificationRecord/index.vue @@ -14,8 +14,9 @@ model="TABLE" :params="queryParams" :defaultParams="{ - 'sorts[0].name': 'notifyTime', - 'sorts[0].order': 'desc', + sorts: [{ + name: 'notifyTime', order: 'desc' + }] }" >