config.js 676 B

123456789101112131415161718192021
  1. // const baseUrl = process.env.NODE_ENV === 'development' ? 'http://10.0.0.180:8888/' : 'https://zxxapp.sxidc.com/'
  2. const baseUrl = process.env.NODE_ENV === 'development' ? 'http://10.0.0.8:30700/' : 'http://10.0.0.151:30700/'
  3. const ossPathPerfixs = 'https://fskj-res.oss-cn-zhangjiakou.aliyuncs.com/zxx/images'
  4. const config = {
  5. baseUrl,
  6. apiBaseUrl: baseUrl + 'mbwcb/api',
  7. imgBaseUrl: baseUrl + '',
  8. uploadUrl: '/upload',
  9. httpDefaultOption: {
  10. showLoading: true,
  11. showErrorMsg: true,
  12. isAuth: true,
  13. },
  14. ossPathPerfixs,
  15. defaultAvatarUrl: '/static/images/tool/default-avatar.png',
  16. defaultErrorImg: '/static/images/tool/defaultErrorImg.png',
  17. }
  18. export default config