setting.js 768 B

12345678910111213141516171819202122232425262728
  1. /**
  2. * 全局变量配置
  3. */
  4. module.exports = {
  5. // 应用名
  6. name: 'Rider',
  7. // 应用logo,支持本地路径和网络路径
  8. logo: '/static/images/logo.png',
  9. // 版本号
  10. version: '1.0.0',
  11. // 开发环境接口Url
  12. // devUrl: 'http://192.168.1.120:1080',
  13. devUrl: 'http://121.37.83.47:10004',
  14. // 线上环境接口Url
  15. prodUrl: 'http://121.37.83.47:10004',
  16. // 后端数据的接收方式application/json;charset=UTF-8或者application/x-www-form-urlencoded;charset=UTF-8
  17. contentType: 'application/json;charset=UTF-8',
  18. // 后端返回状态码
  19. codeName: 'code',
  20. // 操作正常code
  21. successCode: 200,
  22. // 登录失效code
  23. invalidCode: 401,
  24. // 客户端ID
  25. clientId: 'saber',
  26. // 客户端密钥
  27. clientSecret: 'saber_secret'
  28. }