管灌系统农户端微信小程序(嘉峪关应用)
api/config.js
@@ -1,9 +1,16 @@
const { ENV } = require('./env')
const {
  ENV
} = require('./env')
let BASEURL
const PROJECT_URLS = {
  JYG: 'https://irrigate.dayuyanjiuyuan.top/', // 嘉峪关项目
  MQ: 'https://minqin.dayuyanjiuyuan.top/'    // 民勤项目
  MQ: 'https://shifanqu1.dayuyanjiuyuan.top/', // 民勤项目
  TEST: 'https://no253541tf71.vicp.fun/', // test项目
  SCHOOL: 'https://school.dayuyanjiuyuan.top/' // 学校项目
  // TEST:'http://192.168.40.182:8087/'// test项目
  // MQ: 'https://no253541tf71.vicp.fun/'    // 民勤项目
  // TEST: 'http://192.168.40.166:54321/'
}
// 尝试从本地存储获取已选择的项目
@@ -21,7 +28,7 @@
      console.error('从本地存储获取项目失败:', e);
    }
  }
  // 如果全局应用已初始化,也尝试从全局变量获取
  const app = getApp();
  if (app && app.globalData && app.globalData.selectedProject) {
@@ -56,7 +63,7 @@
}
module.exports = {
  BASEURL,// 项目接口地址,支持多域名
  BASEURL, // 项目接口地址,支持多域名
  PROJECT_URLS,
  setBaseUrl
}