黎星凯
2024-04-30 3be9cfcb6b59366b936821966d20a998a6895f9f
admin-web/public/static/config.js
@@ -1,24 +1,29 @@
// 请求接口地址 如果没有配置自动获取当前网址路径
const VUE_APP_API_URL = process.env.VUE_APP_BASE_API || `${location.origin}`;
const VUE_APP_WS_URL =
  process.env.VUE_APP_WS_URL || (location.protocol === 'https' ? 'wss' : 'ws') + ':' + location.hostname;
// 动态获取访问ip
const protocol = window.location.protocol
const host = window.location.host
const SettingIplatform = {
  // 服务器地址
  // 服务器地址
  httpUrl: VUE_APP_API_URL,
  // 上传路径
  ftpUrl: 'https://yqzx.jinmingyuan.com/lowConsum',//开发
  // ftpUrl:'https://jmy.jinmingyuan.com/progress',// 测试,
// 接口请求地址
// apiBaseURL: 'http://116.198.39.83:8082/progress', // 正式
  // apiBaseURL: 'http://172.16.60.90:8082/progress',//开发
  apiBaseURL: 'https://yqzx.jinmingyuan.com/lowConsum',//开发
// apiBaseURL: 'https://jmy.jinmingyuan.com/progress',// 测试,
  // socket连接
  wsSocketUrl: VUE_APP_WS_URL,
  debug: true //调试开关  true时会输出请求日志
  // ftpUrl: 'https://yqzx.jinmingyuan.com/lowConsum',//测试
  // apiBaseURL: 'https://yqzx.jinmingyuan.com/lowConsum',//测试
  // 接口请求地址
  ftpUrl: 'http://172.16.60.172:8083/lowConsum',//开发
  apiBaseURL: 'http://172.16.60.172:8083/lowConsum',//开发
  // apiBaseURL: 'http://172.16.60.110:8083/lowConsum',//开发
  // ftpUrl: protocol + '//'+ host + '/file',// 正式,
  // apiBaseURL: protocol + '//'+ host + '/lowapi',// 正式,
  // ftpUrl: protocol + '//'+ host + '/lowapi',// 正式,
  // apiBaseURL: protocol + '//'+ host + '/lowapi',// 正式,
  debug: false //调试开关  true时会输出请求日志
};
export default SettingIplatform;