diff --git a/src/api/account/notificationRecord.ts b/src/api/account/notificationRecord.ts index 58cb612f..2485069e 100644 --- a/src/api/account/notificationRecord.ts +++ b/src/api/account/notificationRecord.ts @@ -1,7 +1,9 @@ import server from '@/utils/request' // 获取记录列表 -export const getList_api = (data:object): any =>server.post(`/notifications/_query`,data) +export const getList_api = (data:object): any =>server.get(`/notifications/_query`,encodeParams(data)) +// 获取未读记录列表 +export const getListByUnRead_api = (data:object): any =>server.post(`/notifications/_query`,data) // 修改记录状态 export const changeStatus_api = (type:'_read'|'_unread',data:string[]): any =>server.post(`/notifications/${type}`,data) diff --git a/src/components/Layout/components/Notice.vue b/src/components/Layout/components/Notice.vue index 42ada485..36e6bb38 100644 --- a/src/components/Layout/components/Notice.vue +++ b/src/components/Layout/components/Notice.vue @@ -19,7 +19,7 @@