halo-admin/packages
Ryan Wang 6244e8b5c0
refactor: request api of user data (#882)
#### What type of PR is this?

/kind improvement

#### What this PR does / why we need it:

重构获取用户信息的请求方式,无需再请求所有角色即可获取当前用户的角色信息,适配:https://github.com/halo-dev/halo/pull/3372

相关 PR:https://github.com/halo-dev/console/pull/847

#### Which issue(s) this PR fixes:

Fixes https://github.com/halo-dev/halo/issues/3342

#### Special notes for your reviewer:

测试方式:

1. Halo 需要切换到 https://github.com/halo-dev/halo/pull/3372 分支。
2. Console 需要 `pnpm install && pnpm build:packages`
3. 测试用户列表、登录、检查角色信息是否显示正确。

#### Does this PR introduce a user-facing change?

```release-note
优化 Console 端用户角色标识的显示名称。
```
2023-02-24 06:06:14 +00:00
..
api-client refactor: request api of user data (#882) 2023-02-24 06:06:14 +00:00
components feat: add layer-closeable prop for modal (#861) 2023-02-17 06:52:13 +00:00
shared chore: release 2.2.0 (#835) 2023-02-01 02:52:10 +00:00