Skip to content
This repository has been archived by the owner on Nov 17, 2022. It is now read-only.

Commit

Permalink
feat: remove api auth
Browse files Browse the repository at this point in the history
  • Loading branch information
luhc228 committed Sep 19, 2022
1 parent cd92347 commit c045403
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions website/docs/guide/plugins/auth.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import TabItem from '@theme/TabItem';
- 操作权限:页面中的某些按钮或组件针对无权限的用户直接隐藏
- 接口权限:当用户通过操作调用没有权限的接口时跳转到无权限页面

icejs 提供开箱即用的方式帮助用户更简单管理应用权限
icejs 提供 `@ice/plugin-auth` 插件,帮助用户更简单管理前两种类型的权限。接口权限管理请见数据请求文档

## 安装插件

Expand Down Expand Up @@ -189,10 +189,6 @@ function Foo() {
}
```

## 接口鉴权

请参考文档 数据请求,业务上封装统一的请求方法,与服务端约定接口协议,前端根据状态码判断无权限、未登录等状态,然后跳转到指定页面。

## 自定义 Fallback

支持自定义无权限时的展示组件,默认为 `<>No Auth</>`
Expand Down

0 comments on commit c045403

Please sign in to comment.