From c8361f1a9080a9e52d0ac772bd59697ad318cfe9 Mon Sep 17 00:00:00 2001
From: admin <344137771@qq.com>
Date: Mon, 05 Jan 2026 10:44:24 +0800
Subject: [PATCH] 1
---
src/page/user/notify.vue | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/src/page/user/notify.vue b/src/page/user/notify.vue
index cbdabb3..5a7084c 100644
--- a/src/page/user/notify.vue
+++ b/src/page/user/notify.vue
@@ -16,7 +16,7 @@
<div>
<div class="box page-part transaction">
<div class="box-contain clearfix">
- <notifyList></notifyList>
+ <notifyList @messageRead="handleMessageRead"></notifyList>
</div>
</div>
</div>
@@ -43,6 +43,15 @@
methods: {
toSure () {
// 确定
+ },
+ handleMessageRead() {
+ // 消息已读,通知App组件更新未读数量
+ if (this.$root && this.$root.$children && this.$root.$children[0]) {
+ const appComponent = this.$root.$children[0]
+ if (appComponent.getUnreadCount) {
+ appComponent.getUnreadCount()
+ }
+ }
}
}
}
--
Gitblit v1.9.3