You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
/**
|
|
|
|
|
* 请求成功状态码
|
|
|
|
|
*/
|
|
|
|
|
export const SUCCESS_CODE = 0
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 请求contentType
|
|
|
|
|
*/
|
|
|
|
|
export const CONTENT_TYPE:
|
|
|
|
|
| 'application/json'
|
|
|
|
|
| 'multipart/form-data'
|
|
|
|
|
| 'application/x-www-form-urlencoded'
|
|
|
|
|
| 'text/plain' = 'multipart/form-data'
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 请求超时时间
|
|
|
|
|
*/
|
|
|
|
|
export const REQUEST_TIMEOUT = 60000
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 不重定向白名单
|
|
|
|
|
*/
|
|
|
|
|
export const NO_REDIRECT_WHITE_LIST = ['/login']
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 不重置路由白名单
|
|
|
|
|
*/
|
|
|
|
|
export const NO_RESET_WHITE_LIST = ['Redirect', 'Login', 'NoFind', 'Root']
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 表格默认过滤列设置字段
|
|
|
|
|
*/
|
|
|
|
|
export const DEFAULT_FILTER_COLUMN = ['expand', 'selection']
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 是否根据headers->content-type自动转换数据格式
|
|
|
|
|
*/
|
|
|
|
|
export const TRANSFORM_REQUEST_DATA = true
|