From b94daf4ea357eafce26f37a1f0a799d55cbfa1a4 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期一, 24 二月 2025 16:38:21 +0800
Subject: [PATCH] ll

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

diff --git a/h5/utils/service.js b/h5/utils/service.js
index 0539bd3..4a85322 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) => {
@@ -34,13 +34,16 @@
 								duration: 2000
 							})
 						})
-						if (data.code === 500 || data.code === 5112) {
-							uni.clearStorageSync()
-							return uni.navigateTo({
-								url: '/pages/login/login'
+						if (data.code === 500) {
+							uni.showToast({
+								'title': '鏈嶅姟鍣ㄥ紓甯�',icon:'none'
 							})
 						}
-						return
+						if (data.code === 5112) {
+							uni.clearStorageSync()
+							window.location.href = app_url
+						}
+						return resolve(data)
 					}
 					resolve(data)
 					// return response.data
@@ -48,7 +51,8 @@
 				fail: (err) => {
 					// 椤甸潰涓脊妗嗘樉绀哄け璐�
 					uni.showToast({
-						title: '璇锋眰鎺ュ彛澶辫触'
+						title: '璇锋眰鎺ュ彛澶辫触',
+						icon:"none"
 					})
 
 					// 杩斿洖閿欒娑堟伅

--
Gitblit v1.9.3