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