From 0400e752e3021606012eb08992fc13216edfb377 Mon Sep 17 00:00:00 2001
From: doum <doum>
Date: 星期四, 20 十一月 2025 18:05:11 +0800
Subject: [PATCH] 最新版本541200007

---
 h5/utils/service.js |   15 +++++++++------
 1 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/h5/utils/service.js b/h5/utils/service.js
index 1ecf79c..4d7a31a 100644
--- a/h5/utils/service.js
+++ b/h5/utils/service.js
@@ -1,4 +1,4 @@
-import { baseUrl } from "./config.js"
+import { baseUrl, app_url } from "./config.js"
 export const http = function (options) {
 	{
 		return new Promise((resolve, reject) => {
@@ -33,13 +33,16 @@
 								icon: "none",
 								duration: 2000
 							})
-						})
-						if (data.code === 500 || data.code === 5112) {
-							uni.clearStorageSync()
-							return uni.navigateTo({
-								url: '/pages/login/login'
+						},500)
+						if (data.code === 500) {
+							uni.showToast({
+								'title': '鏈嶅姟鍣ㄥ紓甯�',icon:'none'
 							})
 						}
+						// if (data.code === 5112) {
+						// 	uni.clearStorageSync()
+						// 	window.location.href = app_url
+						// }
 						return resolve(data)
 					}
 					resolve(data)

--
Gitblit v1.9.3