app.js 808 B

1234567891011121314151617181920212223242526272829
  1. // let domain = 'http://192.168.100.254:8024/front-api' // 内网IP
  2. // let domain = 'http://192.168.100.199:8081' // 晋守桦IP
  3. // let domain = 'http://192.168.100.14:8081' // 赵乔功IP
  4. // let domain = 'https://test.shuibeibyg.com/front-api' // 测试环境IP
  5. let domain = 'https://www.shuibeibyg.com/front-api' // 正式环境IP
  6. export const HTTP_REQUEST_URL = domain
  7. // PC 后台 API 地址(用于上传图片)
  8. export const HTTP_ADMIN_URL = domain
  9. // 请求头
  10. export const HEADER = {
  11. 'content-type': 'application/json'
  12. }
  13. // 表单提交头
  14. export const HEADERPARAMS = {
  15. 'content-type': 'application/x-www-form-urlencoded'
  16. }
  17. // token 名称
  18. export const TOKENNAME = 'Authori-zation'
  19. // 缓存时间,0 为永久
  20. export const EXPIRE = 0
  21. // 分页默认限制条数
  22. export const LIMIT = 10