/** * 配置通用 */ const node_dev = process.env.H_NODE_ENV; //运行到浏览器用的 let baseUrl='https://xusfoodapi.dev.dazesoft.cn/appapi/app'; let upFileUrl='https://xusfoodapi.dev.dazesoft.cn/appapi/app'; let staticUrl='http://res.dev.dazesoft.cn/xushuo/'; //打包用的 if (node_dev) { baseUrl = process.env.H_BASE_URL; upFileUrl = process.env.H_UP_FILE_URL; staticUrl = process.env.H_STATIC_FILE_URL; } //64 // let baseUrl='https://xusfoodapi.dev.dazesoft.cn/appapi/app'; // let upFileUrl='http://fileupload.dev.dazesoft.cn/upload/single/minio'; // let staticUrl='http://res.dev.dazesoft.cn/xushuo/'; //正式 // let baseUrl='https://xusapi.gzxsjt.cn/appapi/app'; // let upFileUrl='https://xusapi.gzxsjt.cn/thirdapi/upload/single/minio'; // let staticUrl='http://res.gzxsjt.cn/xushuo/'; const commonConfig = { wxAppid: '', // 测试wxAppid baseUrl: baseUrl, // 服务器地址 uploadFileUrl: upFileUrl, // 上传文件路径 staticUrl:staticUrl, paginationConfig:{ pageNum: 1, pageSize: 10 },//分页参数 successCode:200,//接口返回状态 } export { commonConfig }