From 0a48655d2162b709ecb80d249a4085971add6140 Mon Sep 17 00:00:00 2001
From: Houjie <714924425@qq.com>
Date: 星期一, 07 七月 2025 17:26:30 +0800
Subject: [PATCH] 企业微信

---
 common/service/service.js |   24 ++++++++++++++++++++----
 1 files changed, 20 insertions(+), 4 deletions(-)

diff --git a/common/service/service.js b/common/service/service.js
index d23985a..a067093 100644
--- a/common/service/service.js
+++ b/common/service/service.js
@@ -97,6 +97,7 @@
 			case 504:
 				break
 			case 401:
+				uni.removeStorageSync(ACCESS_TOKEN); // 娓呴櫎 token
 				uni.showModal({
 					title: '鎻愮ず',
 					content: '鐧诲綍瓒呮椂锛岄渶瑕侀噸鏂扮櫥褰�!',
@@ -104,12 +105,27 @@
 					success: (res) => {
 						if (res.confirm) {
 							uni.reLaunch({
-								url: '/pages/login/login'
-							})
+								url: '/pages/login/loginOauth2'
+							});
 						}
 					}
 				});
-				break
+				break;
+
+			// case 401:
+			// 	uni.showModal({
+			// 		title: '鎻愮ず',
+			// 		content: '鐧诲綍瓒呮椂锛岄渶瑕侀噸鏂扮櫥褰�!',
+			// 		showCancel: false,
+			// 		success: (res) => {
+			// 			if (res.confirm) {
+			// 				uni.reLaunch({
+			// 					url: '/pages/login/login'
+			// 				})
+			// 			}
+			// 		}
+			// 	});
+			// 	break
 			default:
 				tip.error({
 					duration: 0,
@@ -124,4 +140,4 @@
 
 export {
 	http
-}
\ No newline at end of file
+}

--
Gitblit v1.9.3