Blame view

common/config/env.js 700 Bytes
c293da23   刘淇   新园林init
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
  // 环境配置 - 确保无语法错误
  const env = {
    // 开发环境
    development: {
      baseUrl: 'https://test.jichengshanshui.com.cn:28302',
      uploadUrl: 'https://test.jichengshanshui.com.cn:28302',
      // baseApi:'admin-api',
      // appApi:'app-api'
    },
    // 生产环境
    production: {
      baseUrl: 'https://api.jcss.com',
      uploadUrl: 'https://upload.jcss.com/upload',
      // baseApi:'admin-api',
      // appApi:'app-api'
    }
  };
  
  // 获取当前环境
  const getEnv = () => {
  
    const currentEnv = 'development';
  
    return currentEnv;
  };
  
  // 导出当前环境配置(关键:补全分号,避免语法错误)
  const currentEnvConfig = env[getEnv()];
  export default currentEnvConfig;