// const defaultHost = 'http://192.168.64.217:3003/';
const defaultHost = 'http://localhost:3003/';
// const defaultHost = 'http://192.168.64.97:3003/';
// const defaultHost = 'http://192.168.64.29:9081/';
// const defaultHost = 'http://192.168.64.44:3003/';
// const defaultHost = 'http://192.168.64.232:3003/';

const getHost = (bu, bk) => {
  if (bu === 'undefined' || !bu) {
    return bk;
  }
  return bu;
};

/* eslint-disable */
window.apiHost = getHost(apiHost, defaultHost);

/* eslint-disable */
const Config = {
  DefaultMenuIcon: 'icon-kuanxiangguanli_yinhangliushuidaoru',
  Host: getHost(apiHost, defaultHost),
  ContainerPre: 'fe/web-boilerplate' // 请求里的core在打包时注入
};

const CustomConfig = {
  ImageHost: 'http://img.izirong.com/',
  ImageBkt: 'wuhan-fas-img',
  ImageAk: 'iCduUao0AIuRdTqd3_4oqwzU8doDU3vh0sMF1CzD',
  ImageSk: 'UtrtzaV8CAXgRkajynOnghX24NrS70Qs0RJozPcZ',
}

export default Object.assign(Config, CustomConfig);
