add package

This commit is contained in:
Timi
2026-09-01 01:14:54 +08:00
parent 100d4c4c44
commit 2d94abfb32
39 changed files with 4425 additions and 59 deletions
+2 -2
View File
@@ -62,9 +62,9 @@ async function list(req: Page<EventItem>, options?: ListOptions): Promise<PageRe
return await axios.post(`${BASE_URI}/list`, withCurrentStorePage(orderedPage));
}
async function listValid(): Promise<EventItem[]> {
async function listValid(storeId?: string): Promise<EventItem[]> {
const list = await axios.post(`${BASE_URI}/list/valid`, undefined, {
params: { storeId: getCurrentStoreId() }
params: { storeId: storeId || getCurrentStoreId() }
}) as unknown as EventItem[];
return sortEventList(list);
}