From 41193d186d157937ba052e73dd04c12018e9ecab Mon Sep 17 00:00:00 2001
From: 祖安之光 <11848914+light-of-zuan@user.noreply.gitee.com>
Date: Thu, 07 Aug 2025 10:38:42 +0800
Subject: [PATCH] 新增
---
utils/http.js | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/utils/http.js b/utils/http.js
index 08c620f..248b1a2 100644
--- a/utils/http.js
+++ b/utils/http.js
@@ -1,6 +1,6 @@
// utils/http.js
-const BASE_URL = 'http://192.168.2.58:8083'; // 替换为你的API基础地址
-
+const BASE_URL = 'https://reagent.sinanoaq.cn';
+// const BASE_URL = 'http://47.108.222.15:8001';
// 全局配置
const config = {
showToast: true, // 默认显示Toast提示
@@ -76,7 +76,9 @@
* 清除缓存并跳转到首页
*/
function clearStorageAndRedirect() {
- wx.clearStorageSync();
+ if(!wx.getStorageSync('isSave') || wx.getStorageSync('isSave') == false){
+ wx.clearStorageSync();
+ }
setTimeout(() => {
wx.reLaunch({
url: '/pages/index/index' // 替换为你的登录页路径
--
Gitblit v1.9.2