From 82d6b98f5b6b88e223259547208ab59829ad723e Mon Sep 17 00:00:00 2001
From: wlzboy <66905212@qq.com>
Date: 星期六, 01 十一月 2025 21:30:52 +0800
Subject: [PATCH] fix:增加旧系统状态同步到新系统,新系统状态同步到旧系统

---
 app/pages/index.vue |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/app/pages/index.vue b/app/pages/index.vue
index ea9ae6d..27abff0 100644
--- a/app/pages/index.vue
+++ b/app/pages/index.vue
@@ -246,6 +246,13 @@
       
       // 鍔犺浇鏈娑堟伅鏁伴噺
       loadUnreadMessageCount() {
+        // 妫�鏌ョ敤鎴锋槸鍚﹀凡鐧诲綍
+        const userId = this.currentUser.userId
+        if (!userId) {
+          console.log('鐢ㄦ埛鏈櫥褰曪紝璺宠繃鑾峰彇鏈娑堟伅鏁伴噺')
+          return
+        }
+        
         getUnreadCount().then(response => {
           if (response.code === 200) {
             this.unreadMessageCount = response.data || 0

--
Gitblit v1.9.1