After logging in, antd pro users will also request a currentUser, and then the personal settings in the upper right corner will be loaded. What is this request for?

could you tell me how to write the login of the great gods with pro?

Mar.28,2021

load the current user's. It is described in .roomhogrc.mock.js . The
development uses mock data.

  'GET /api/currentUser': {
    $desc: '',
    $params: {
      pageSize: {
        desc: '',
        exp: 2,
      },
    },
    $body: {
      name: 'Serati Ma',
      avatar: 'https://img.codeshelper.com/upload/img/2021/03/28/podp4erxel413966.png',
      userid: '00000001',
      notifyCount: 12,
    },
  }
Menu