fix: 将events.getAll重命名为list匹配store调用 (P2基础页面)
This commit is contained in:
parent
4dbf9b0bbc
commit
7a4af33ff5
@ -87,7 +87,7 @@ export const api = {
|
|||||||
|
|
||||||
// Events API
|
// Events API
|
||||||
events: {
|
events: {
|
||||||
getAll: async (type?: EventType) => {
|
list: async (type?: EventType) => {
|
||||||
const query = type ? `?type=${type}` : '';
|
const query = type ? `?type=${type}` : '';
|
||||||
return api.request<Event[]>(`/events${query}`);
|
return api.request<Event[]>(`/events${query}`);
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user