app.js 592 B

12345678910111213141516171819202122232425262728
  1. import { domainInfo } from './env.js';
  2. export const HTTP_REQUEST_URL = domainInfo.domain
  3. export const HTTP_REQUEST_URL_WS = domainInfo.domainWS
  4. // PC 后台 API 地址(用于上传图片)
  5. export const HTTP_ADMIN_URL = domainInfo.domain
  6. // 请求头
  7. export const HEADER = {
  8. 'content-type': 'application/json'
  9. }
  10. // 表单提交头
  11. export const HEADERPARAMS = {
  12. 'content-type': 'application/x-www-form-urlencoded'
  13. }
  14. // token 名称
  15. export const TOKENNAME = 'Authorization'
  16. // 缓存时间,0 为永久
  17. export const EXPIRE = 0
  18. // 分页默认限制条数
  19. export const LIMIT = 10