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 @@