// 后端接口的基本路径
// const baseUrl = process.env.NODE_ENV === 'development' ? '/api' : ''
const baseUrl = (process.env.NODE_ENV === 'production')
  ? (location.protocol + '//' + location.host+'/api')
  : '/api'
// console.log(baseUrl, 'baseUrl')
// 路由模式，history不带#(需要后台配合),hash带#,
const routeMode = 'history'
// const routeMode = 'hash'
// 上传文件的地址
const uploadUrl = `${baseUrl}/admin/upload`
export {
  baseUrl,
  uploadUrl,
  routeMode
}
