From 1833dd6d7cac01c35840af52fadc1199821e5805 Mon Sep 17 00:00:00 2001
From: Houjie <714924425@qq.com>
Date: 星期四, 15 五月 2025 09:28:16 +0800
Subject: [PATCH] 提交优化项

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

diff --git a/common/service/service.js b/common/service/service.js
index ee5456c..de4ec21 100644
--- a/common/service/service.js
+++ b/common/service/service.js
@@ -70,26 +70,32 @@
           tip.error('鎷掔粷璁块棶');
           break
         case 500:
-          if(!token || data.message=="Token澶辨晥锛岃閲嶆柊鐧诲綍"){
-            let timeout=setTimeout(tip.alert('鐧诲綍宸茶繃鏈�'), 1000);
-            store.dispatch('Logout').then(() => {
-				clearTimeout(timeout)
-                window.location.reload()
-            }) 
-          }
+		this.$tip.alert('鏈嶅姟鍣ㄩ亣鍒颁竴涓敊璇紝鏆傛椂鏃犳硶澶勭悊鎮ㄧ殑璇锋眰');
+    //       if(!token || data.message=="Token澶辨晥锛岃閲嶆柊鐧诲綍"){
+    //         let timeout=setTimeout(tip.alert('鐧诲綍宸茶繃鏈�'), 1000);
+    //         store.dispatch('Logout').then(() => {
+				// clearTimeout(timeout)
+    //             window.location.reload()
+    //         }) 
+    //       }
           break
         case 404:
           break
         case 504:
          break
         case 401:
-          if (token) {
-           /* store.dispatch('Logout').then(() => {
-              setTimeout(() => {
-                window.location.reload()
-              }, 1500)
-            }) */
-          }
+          uni.showModal({
+          	title: '鎻愮ず',
+          	content: '鐧诲綍瓒呮椂锛岄渶瑕侀噸鏂扮櫥褰�!',
+          	showCancel:false,
+          	success: (res)=> {
+          		if (res.confirm) {
+          			uni.reLaunch({
+          				url: '/pages/login/login'
+          			})
+          		} 
+          	}
+          });
           break
         default:
           tip.error({

--
Gitblit v1.9.3