From 883821a9c0da3f86181301a3c3767c8869e86ea0 Mon Sep 17 00:00:00 2001 From: ZhangYong Date: Wed, 22 Oct 2025 17:12:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E5=8F=B0=E6=B8=B2=E6=9F=93?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/workspace/CashManagement.vue | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/components/workspace/CashManagement.vue b/src/components/workspace/CashManagement.vue index c54d9de..b488801 100644 --- a/src/components/workspace/CashManagement.vue +++ b/src/components/workspace/CashManagement.vue @@ -100,7 +100,6 @@ const startDate = `${currentYear}-01-01 00:00:00`; const endDate = `${currentYear}-12-31 23:59:59`; // 获取接口数据 const fetchCashData = async () => { - getAdminData() try { const res = await request({ url: '/workbench/getTotalRevenue', @@ -227,9 +226,9 @@ const renderChart = () => { chartInstance.setOption(option) } -onMounted(() => { - // getAdminData() - fetchCashData() +onMounted( async() => { + await getAdminData() + await fetchCashData() })