config.js 292 B

123456789101112131415
  1. const baseUrl = process.env.NODE_ENV === 'development' ? '' : ''
  2. const config = {
  3. baseUrl,
  4. apiBaseUrl: baseUrl + '/api/',
  5. uploadUrl: 'upload',
  6. httpDefaultOption: {
  7. showLoading: true,
  8. showErrorMsg: true,
  9. isAuth: true,
  10. },
  11. defaultErrorImg: ''
  12. }
  13. export default config