config.js 715 B

12345678910111213141516171819202122
  1. // const baseUrl = process.env.NODE_ENV === 'development' ? 'http://10.0.0.85:8080/' : 'http://10.0.0.85:8080/'
  2. const baseUrl = process.env.NODE_ENV === 'development' ? 'http://fs.towantto.com:20201/' : 'http://fs.towantto.com:20201/'
  3. const ossPathPerfixs = 'https://fskj-res.oss-cn-zhangjiakou.aliyuncs.com/zxx/images'
  4. const config = {
  5. baseUrl,
  6. apiBaseUrl: baseUrl,
  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. schoolId: '032bd55dc7984195b8e492a713007bb3'
  18. }
  19. export default config