| | |
| | | const { ENV } = require('./env') |
| | | const { |
| | | ENV |
| | | } = require('./env') |
| | | let BASEURL |
| | | |
| | | const PROJECT_URLS = { |
| | | JYG: 'https://irrigate.dayuyanjiuyuan.top/', // 嘉峪关项目 |
| | | // MQ: 'https://shifanqu1.dayuyanjiuyuan.top/' // 民勤项目 |
| | | MQ: 'https://no253541tf71.vicp.fun/' // 民勤项目 |
| | | MQ: 'https://shifanqu1.dayuyanjiuyuan.top/', // 民勤项目 |
| | | TEST: 'https://no253541tf71.vicp.fun/', // test项目 |
| | | SCHOOL: 'https://school.dayuyanjiuyuan.top/', // 学校项目 |
| | | JC:'https://shifanqu1.dayuyanjiuyuan.top/', |
| | | GSCLT:'https://irrigate.dayuyanjiuyuan.top/'//甘肃农科院崔龙天 |
| | | // TEST:'http://192.168.40.182:8087/'// test项目 |
| | | // MQ: 'https://no253541tf71.vicp.fun/' // 民勤项目 |
| | | // TEST: 'http://192.168.40.166:54321/' |
| | | } |
| | | |
| | | // 尝试从本地存储获取已选择的项目 |
| | |
| | | console.error('从本地存储获取项目失败:', e); |
| | | } |
| | | } |
| | | |
| | | |
| | | // 如果全局应用已初始化,也尝试从全局变量获取 |
| | | const app = getApp(); |
| | | if (app && app.globalData && app.globalData.selectedProject) { |
| | |
| | | } |
| | | |
| | | module.exports = { |
| | | BASEURL,// 项目接口地址,支持多域名 |
| | | BASEURL, // 项目接口地址,支持多域名 |
| | | PROJECT_URLS, |
| | | setBaseUrl |
| | | } |