// 生产接口根地址:所有 production 构建(electron 打包 / Android 打包)统一指向生产域名, // 避免构建机上残留的 .env.local 测试地址被带进生产包 const PROD_API_BASE = 'https://qimen.wms.gztbyc.com' // 开发环境地址走 Vite 环境变量(见 .env.example / .env.local,敏感地址勿提交 git) export const BASE_URL = import.meta.env.PROD ? PROD_API_BASE : import.meta.env.VITE_API_BASE_URL || '' // 接口根地址,开发时由 .env.local 注入 export const API_URL = `${BASE_URL}/system` // 后台接口域名 export const IMG_URL = import.meta.env.VITE_IMG_URL || 'https://ye4s.file.gzxunren.com' // 全局网络图片地址变量,css背景图片地址变量在uni.scss