From ad21d20751f73f07e884614d7d652ba3699eb30b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E8=AF=9A?= Date: Sat, 10 Jan 2026 23:01:02 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=E6=9C=AA=E8=AF=BB?= =?UTF-8?q?=E6=B6=88=E6=81=AF=E8=AE=A1=E6=95=B0=E7=9A=84=E5=88=B7=E6=96=B0?= =?UTF-8?q?=E9=A2=91=E7=8E=87=EF=BC=8C=E4=BC=98=E5=8C=96=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E8=A7=86=E5=9B=BE=EF=BC=9B=E6=B7=BB=E5=8A=A0=E5=88=86=E7=B1=BB?= =?UTF-8?q?=E6=A0=87=E7=AD=BE=E6=98=BE=E7=A4=BA=E5=8A=9F=E8=83=BD=EF=BC=8C?= =?UTF-8?q?=E5=A2=9E=E5=BC=BA=E9=A2=84=E7=AE=97=E5=8D=A1=E7=89=87=E7=9A=84?= =?UTF-8?q?=E5=8F=AF=E8=AF=BB=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Web/src/App.vue | 4 ++- Web/src/components/Bill/BillForm.vue | 12 +++++-- Web/src/components/Budget/BudgetCard.vue | 44 ++++++++++++++++++++++++ Web/src/components/TransactionDetail.vue | 24 ++++++++----- Web/src/views/BudgetView.vue | 28 +++++++++++---- Web/src/views/MessageView.vue | 11 ++---- 6 files changed, 98 insertions(+), 25 deletions(-) diff --git a/Web/src/App.vue b/Web/src/App.vue index f33095f..c474b8f 100644 --- a/Web/src/App.vue +++ b/Web/src/App.vue @@ -113,11 +113,13 @@ onMounted(() => { setInterval(() => { messageStore.updateUnreadCount() -}, 30 * 1000) // 每30秒更新一次未读消息数 +}, 60 * 1000) // 每60秒更新一次未读消息数 // 监听路由变化调整 watch(() => route.path, (newPath) => { setActive(newPath) + + messageStore.updateUnreadCount() }) const setActive = (path) => { diff --git a/Web/src/components/Bill/BillForm.vue b/Web/src/components/Bill/BillForm.vue index aa8259d..a8870ad 100644 --- a/Web/src/components/Bill/BillForm.vue +++ b/Web/src/components/Bill/BillForm.vue @@ -90,7 +90,7 @@