fix: 将events.getAll重命名为list匹配store调用 (P2基础页面)

This commit is contained in:
ddshi 2026-01-29 16:50:41 +08:00
parent 4dbf9b0bbc
commit 7a4af33ff5

View File

@ -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}`);
}, },