import axios from 'axios'


// 创建axios实例
const service = axios.create({
  // baseURL: `http://127.0.0.1:41185/submit/MESCommonBase`,
  baseURL: window.dt_Config.serverAddress,
  // baseURL: `http://124.220.32.217:8015/submit/MESCommonBase.ashx`,
  // baseURL: `http://192.168.113.111:8459/submit/MESCommonBase.ashx`,
  timeout: 1500000 // 请求超时间 default service
})



// const ExcelDownLoad = 'http://127.0.0.1:41185/submit/MESCommonBase' // 导出excel
const ExcelDownLoad = window.dt_Config.serverAddress // 导出excel
// const ExcelDownLoad = 'http://124.220.32.217:8015/submit/MESCommonBase.ashx' // 导出excel
// const ExcelDownLoad = 'http://192.168.113.111:8459/submit/MESCommonBase.ashx' // 导出excel

const MESUploadFile_config = window.dt_Config.baseURL + `/submit/MESUploadFile.ashx`
const MESDownFile_config = window.dt_Config.baseURL + `/webpage/part/`
export const MESUploadFile = MESUploadFile_config
export const MESDownFile = MESDownFile_config
export default service
axios.defaults.headers.post['Content-Type'] = 'application/json'
export {
  ExcelDownLoad
}
