// 环境配置 // 使用uni-app的条件编译来处理不同环境 let API_BASE_URL = ""; // uEnvProd if (process.env.NODE_ENV === "production") { // #ifdef MP-WEIXIN API_BASE_URL = "https://agent.qiming.com"; // #endif } // uEnvDev if (process.env.NODE_ENV === "development") { API_BASE_URL = "https://testagent.xspaceagi.com"; } // 允许外部链接跳转的域名 export const ALLOW_EXTERNAL_LINK_DOMAIN = [API_BASE_URL, "https://qiming.com"]; // 不需要登录检查的地址 export const NO_LOGIN_CHECK_URL = [ "https://qiming.com/user-agreement.html", "https://qiming.com/privacy.html", ]; // 版本号 export const VERSION = "v1.0.3"; // 登录白名单地址 export const LOGIN_WHITELIST_URL = [ "/api/user/getLoginInfo", ]; // API_BASE_URL 为 let 声明,单独导出;其余常量已在声明处直接导出 export { API_BASE_URL };