From f0c8e8aaf9f41a7ab0f02a23cd7c5de1bffb9e71 Mon Sep 17 00:00:00 2001
From: gongchunyi <deslre0381@gmail.com>
Date: 星期三, 20 五月 2026 18:32:47 +0800
Subject: [PATCH] feat: 决策分析数据获取新增轮询

---
 src/views/reportAnalysis/financialAnalysis/components/center-top.vue |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/src/views/reportAnalysis/financialAnalysis/components/center-top.vue b/src/views/reportAnalysis/financialAnalysis/components/center-top.vue
index 41fc941..fee5035 100644
--- a/src/views/reportAnalysis/financialAnalysis/components/center-top.vue
+++ b/src/views/reportAnalysis/financialAnalysis/components/center-top.vue
@@ -96,8 +96,9 @@
 </template>
 
 <script setup>
-import { onMounted, ref } from 'vue'
+import { ref } from 'vue'
 import { getMonthlyIncome, getMonthlyExpenditure } from '@/api/viewIndex'
+import { usePollingMultiple } from '@/hooks/usePolling.js'
 
 const income = ref({
   amount: 0,
@@ -179,10 +180,8 @@
   return Number(metric.trend) >= 0 ? '鈫�' : '鈫�'
 }
 
-onMounted(() => {
-  fetchMonthlyIncome()
-  fetchMonthlyExpenditure()
-})
+// 鍚姩杞锛屾瘡鍒嗛挓鍒锋柊涓�娆℃暟鎹�
+usePollingMultiple([fetchMonthlyIncome, fetchMonthlyExpenditure])
 </script>
 
 <style scoped>

--
Gitblit v1.9.3