index-production.js 334 B

1234567891011121314
  1. window.ENV = 'production'
  2. var productionConfig = {
  3. baseUrl: getIpPort(),
  4. fileUrlPrefix: getIpPort() + '/dataroom',
  5. }
  6. // 必须的
  7. window.CONFIG = configDeepMerge(window.CONFIG, productionConfig)
  8. function getIpPort() {
  9. // 从当前网址中获取ip和端口
  10. const ipPort = window.location.host;
  11. return "http://" + ipPort
  12. }