From 5f2ee03958a1a16dc27195c76ea7cffb422c95d1 Mon Sep 17 00:00:00 2001
From: wlzboy <66905212@qq.com>
Date: 星期五, 19 十二月 2025 22:40:34 +0800
Subject: [PATCH] feat: 任务修改接口,删除一些不要的字段同步
---
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