From 2aebbc9601ab439707f69b08e467808df9f7549c Mon Sep 17 00:00:00 2001
From: wlzboy <66905212@qq.com>
Date: 星期五, 07 十一月 2025 11:50:26 +0800
Subject: [PATCH] feat: weixin

---
 app/App.vue |   15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)

diff --git a/app/App.vue b/app/App.vue
index 298be3a..0e788bc 100644
--- a/app/App.vue
+++ b/app/App.vue
@@ -53,7 +53,8 @@
       }
       
       // 搴旂敤鏄剧ず鏃跺埛鏂版湭璇绘秷鎭暟閲�
-      if (currentToken) {
+      // 娉ㄦ剰锛氬彧鏈夊凡鐧诲綍涓斾笉鍦ㄧ櫥褰曢〉闈㈡椂鎵嶈皟鐢�
+      if (currentToken && !this.isLoginPage()) {
         this.updateUnreadMessageBadge()
         // 閲嶆柊鍚姩杞锛堝鏋滀箣鍓嶅凡鍋滄锛�
         if (!this.messagePollingTimer) {
@@ -87,6 +88,18 @@
         }
       },
       
+      // 鍒ゆ柇褰撳墠鏄惁鍦ㄧ櫥褰曢〉闈�
+      isLoginPage() {
+        const pages = getCurrentPages()
+        if (pages.length === 0) {
+          return false
+        }
+        const currentPage = pages[pages.length - 1]
+        const route = currentPage.route || ''
+        // 鍒ゆ柇鏄惁涓虹櫥褰曠浉鍏抽〉闈�
+        return route.includes('login') || route.includes('register')
+      },
+      
       // 鏇存柊鏈娑堟伅寰芥爣
       updateUnreadMessageBadge() {
         // 妫�鏌ユ槸鍚﹀凡鐧诲綍锛屾湭鐧诲綍鍒欎笉璇锋眰

--
Gitblit v1.9.1