From c5cc7da07c7f202f336468c0cd0d2789b4775b03 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期三, 09 十月 2024 11:31:15 +0800
Subject: [PATCH] 最新版本

---
 h5/utils/service.js |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/h5/utils/service.js b/h5/utils/service.js
index 4131187..a6791d1 100644
--- a/h5/utils/service.js
+++ b/h5/utils/service.js
@@ -34,11 +34,13 @@
 								duration: 2000
 							})
 						})
-					}
-					if (data.code === 5112) {
-						uni.navigateTo({
-							url: '/pages/staffLogin/login'
-						})
+						if (data.code === 500) {
+							uni.clearStorageSync()
+							return uni.navigateTo({
+								url: '/pages/login/login'
+							})
+						}
+						return
 					}
 					resolve(data)
 					// return response.data

--
Gitblit v1.9.3