From ad5c4cc086a40708e66040574ff1d465b66304b6 Mon Sep 17 00:00:00 2001 From: 祖安之光 <11848914+light-of-zuan@user.noreply.gitee.com> Date: 星期四, 07 八月 2025 10:36:25 +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