mirror of https://github.com/halo-dev/halo-admin
![]() #### 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 端用户角色标识的显示名称。 ``` |
||
---|---|---|
.. | ||
src | ||
.eslintignore | ||
.eslintrc.js | ||
.gitignore | ||
.prettierrc.js | ||
README.md | ||
build.config.ts | ||
openapitools.json | ||
package.json | ||
tsconfig.json |
README.md
@halo-dev/api-client
Halo 2.0 的 JavaScript API 客户端请求库。使用 OpenAPI Generator 生成。
开发环境
pnpm install
# 根据 OpenAPI 3.0 生成类型和网络请求的代码,此步骤需要启动 Halo 2.0 后端。
pnpm gen
pnpm build
发布版本
pnpm release