import HttpRequest from '@/libs/base/axios'
import config from '@/config'
import store from "@/store";


let baseUrl = '';

// console.log('==============当前环境：'+process.env.VUE_APP_BUILD_TYPE+'===============')
  baseUrl = process.env.VUE_APP_SERVER_URL;
  config.serviceUrl = process.env.VUE_APP_SERVER_URL
  config.imgUrl =process.env.VUE_APP_IMG_URL;
  // config.hgImgUrl = process.env.VUE_APP_HG_IMG_URL;
  config.uploadUrl = process.env.VUE_APP_UPLOAD_URL;
  config.exportUrl = process.env.VUE_APP_EXPORT_URL;
  config.exportSqlUrl = process.env.VUE_APP_EXPORT_SQL_URL;
  config.logsUrl = process.env.VUE_APP_LOGS_URL;
  config.websockUrl = process.env.VUE_APP_WEBSOCKET_URL;
  config.LOGIN_PAGE_NAME=JSON.parse(process.env.VUE_APP_LOGIN_PAGE_NAME);
  config.loginType=parseInt(process.env.VUE_APP_LOGIN_TYPE);
  config.kuJiaLeUrl = process.env.VUE_APP_KUJIALE_URL;
  config.kuJiaLeApiUrl = process.env.VUE_APP_KUJIALE_API_URL;
  config.dkAuthSysUrl = process.env.VUE_APP_DK_AUTH_SYS_URL;
  config.dkAuthIframePage = process.env.VUE_APP_DK_AUTH_IFRAME_PAGE;
  config.redirectUrl = process.env.VUE_APP_REDIRECT_URL;
  config.dkAuthSysServerUrl = process.env.VUE_APP_DK_AUTH_SYS_SERVER_URL
  config.qvScanClientId = process.env.VUE_APP_QV_SCAN_CLIENT_ID
  config.qvScanAppId = process.env.VUE_APP_QV_SCAN_APPID
  config.qvScanAgentId = process.env.VUE_APP_QV_SCAN_AGENTID

const axios = new HttpRequest(baseUrl)
export default axios
