1234567891011121314151617181920 |
- /*
- * @Author: 廖明明
- * @Date: 2022-03-31 15:12:00
- * @LastEditors: 廖明明
- * @LastEditTime: 2022-04-02 14:29:15
- * @Description: 后端服务配置文件
- */
- //配置项
- const config = {
- baseUrl: "", // 后端服务地址
- };
- // 后端服务地址
- const baseUrls = {
- // development: "http://192.168.3.108/service", //开发环境
- development: "http://192.168.3.69/service", //开发环境
- production: "http://192.168.3.108/service", //生产环境
- };
- config.baseUrl = baseUrls[process.env.NODE_ENV];
- export default config;
|