祖安之光
2025-08-07 ad5c4cc086a40708e66040574ff1d465b66304b6
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' // 替换为你的登录页路径