cache for store chard
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user