From c098f1e3a3e052aa3d65584aae6dc003a70d75ad Mon Sep 17 00:00:00 2001
From: wlzboy <66905212@qq.com>
Date: 星期二, 16 十二月 2025 00:09:14 +0800
Subject: [PATCH] feat: 停止轮询 uncount

---
 app/App.vue |   26 ++++++++++++++++++++++++--
 1 files changed, 24 insertions(+), 2 deletions(-)

diff --git a/app/App.vue b/app/App.vue
index f45cc42..f74c66c 100644
--- a/app/App.vue
+++ b/app/App.vue
@@ -28,7 +28,7 @@
         if (token) {
           this.lastToken = token
           this.updateUnreadMessageBadge()
-          this.startMessagePolling()
+          // this.startMessagePolling()
         }
       })
       
@@ -68,7 +68,7 @@
         this.updateUnreadMessageBadge()
         // 閲嶆柊鍚姩杞锛堝鏋滀箣鍓嶅凡鍋滄锛�
         if (!this.messagePollingTimer) {
-          this.startMessagePolling()
+          // this.startMessagePolling()
         }
       }
     },
@@ -99,6 +99,28 @@
         try {
           if (!getToken()) {
             console.log('鐢ㄦ埛鏈櫥褰曪紝鍑嗗璺宠浆鍒扮櫥褰曢〉闈�')
+            // 淇濆瓨鐩爣椤甸潰鐢ㄤ簬鐧诲綍鍚庤烦杞�
+            if (options && options.path && 
+                options.path !== 'pages/login' && 
+                options.path !== 'pages/qylogin') {
+              // 鏋勯�犲畬鏁寸殑璺緞鍜屾煡璇㈠弬鏁�
+              let fullPath = '/' + options.path;
+              if (options.query) {
+                const queryString = Object.keys(options.query).map(key => 
+                  `${key}=${encodeURIComponent(options.query[key])}`).join('&');
+                if (queryString) {
+                  fullPath += '?' + queryString;
+                }
+              }
+              
+              // 淇濆瓨鐩爣URL鍒版湰鍦板瓨鍌�
+              try {
+                uni.setStorageSync('targetUrl', fullPath);
+              } catch (e) {
+                console.error('淇濆瓨鐩爣URL澶辫触:', e);
+              }
+            }
+            
             // 浣跨敤宸ュ叿绫绘牴鎹幆澧冭嚜鍔ㄨ烦杞埌鍚堥�傜殑鐧诲綍椤甸潰
             redirectToLoginByEnvironment(options, this.$tab);
           } else {

--
Gitblit v1.9.1