api.js 498 B

123456789101112131415161718
  1. /**
  2. * NOTE HOST、HOST_M 是在 config 中通过 defineConstants 配置的
  3. * 只所以不在代码中直接引用,是因为 eslint 会报 no-undef 的错误,因此用如下方式处理
  4. */
  5. /* eslint-disable */
  6. export const host = HOST
  7. export const hostM = HOST_M
  8. /* eslint-enable */
  9. // pic
  10. export const CDN = 'https://yanxuan.nosdn.127.net'
  11. // user
  12. export const API_USER_LOGIN = `${host}/gw/user/login` //
  13. // list
  14. export const API_USER_REPORTS = `${host}/gw/user/reports` // 我的列表