cache for store chard

This commit is contained in:
Timi
2026-08-24 18:32:48 +08:00
parent 6235cb3e3d
commit fe5d190308
8 changed files with 102 additions and 23 deletions
@@ -9,7 +9,6 @@
<script setup lang="ts">
import { Time } from "timi-web";
import EventAPI from "@/api/EventAPI";
import StoreChartAPI from "@/api/StoreChartAPI";
import type { CustomerDailyStatView } from "@/types/Customer";
import type { EventItem } from "@/types/EventItem";
@@ -63,7 +62,7 @@ async function loadSummaryData(): Promise<void> {
}
const requestId = ++summaryRequestId;
eventList.value = await EventAPI.listValid();
eventList.value = await StoreChartAPI.listValidEvents();
const eventIdList = getEventIdList();
const [customerStatList, recordDailyStatList] = await Promise.all([
StoreChartAPI.customerDailyStat({