平安校园
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

setting.js 876 B

3 months ago
2 months ago
3 months ago
3 months ago
2 months ago
3 months ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /**
  2. * 全局变量配置
  3. */
  4. // #ifdef H5
  5. let origin = window.location.origin
  6. // #endif
  7. module.exports = {
  8. // 应用名
  9. name: 'Rider',
  10. // 应用logo,支持本地路径和网络路径
  11. logo: '/static/images/icon/logo.png',
  12. // 版本号
  13. version: '1.0.0',
  14. // H5接口Url
  15. // #ifdef H5
  16. devUrl: `${origin}/`,
  17. prodUrl: `${origin}/`,
  18. // #endif
  19. // 小程序接口Url
  20. // #ifndef H5
  21. devUrl: `${origin}/`,//开发环境接口Url
  22. prodUrl: `${origin}/`,//线上环境接口Url
  23. // #endif
  24. // 后端数据的接收方式application/json;charset=UTF-8或者application/x-www-form-urlencoded;charset=UTF-8
  25. contentType: 'application/json;charset=UTF-8',
  26. // 后端返回状态码
  27. codeName: 'code',
  28. // 操作正常code
  29. successCode: 200,
  30. // 登录失效code
  31. invalidCode: 401,
  32. // token过期时间
  33. tokenTime: 3000,
  34. //文件预览地址
  35. previewUrl: '',
  36. }