errorCode.js 479 B

12345678910
  1. const TO_LOGIN_PAGE = 1
  2. const errorCode = new Map()
  3. errorCode.set('E40001', {todo: TO_LOGIN_PAGE, message: 'accessToken刷新失败'})
  4. errorCode.set('E40002', {todo: TO_LOGIN_PAGE, message: 'refreshToken刷新失败'})
  5. errorCode.set('E40003', {todo: TO_LOGIN_PAGE, message: 'refreshToken已失效'})
  6. errorCode.set('E40004', {todo: TO_LOGIN_PAGE, message: '用户尚未登录'})
  7. errorCode.set('E40005', {todo: TO_LOGIN_PAGE, message: '用户已登录'})
  8. export default errorCode