From 87d1ed9a4e3bfbf87ebb738740c90cda87ac7772 Mon Sep 17 00:00:00 2001 From: "yong.teng" Date: Sat, 6 Jan 2024 14:54:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20shiro=20=E6=89=8B=E5=86=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/NAV.md | 1 + src/index.jsx | 3 ++- src/manual/permission.md | 42 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 45 insertions(+), 1 deletion(-) diff --git a/src/NAV.md b/src/NAV.md index 719ece0..5ba27a3 100644 --- a/src/NAV.md +++ b/src/NAV.md @@ -9,6 +9,7 @@ * [Buession Framework](https://www.buession.com/) * [Buession Security](https://security.buession.com/) * [Buession Logging](https://logging.buession.com/) + * [Buession Canal](https://canal.buession.com/) * [Buession SpringBoot](https://springboot.buession.com/) * [Buession SpringCloud](https://springcloud.buession.com/) * [Buession Cas](https://cas.buession.com/) diff --git a/src/index.jsx b/src/index.jsx index a9031b8..245e2bb 100644 --- a/src/index.jsx +++ b/src/index.jsx @@ -5,7 +5,7 @@ banner: btns: - { name: '开 始', href: '/docs/quickstart.html', primary: true } - { name: 'Github >', href: 'https://github.com/buession/buession-shirojs' } - caption: '当前版本: v1.2.1' + caption: '当前版本: v1.2.2' features: - { name: '优雅', desc: '旨在提供便捷的、统一的、可靠的权限前端权限验证工具,拥有完善的文档和高可读性的源码' } - { name: '易用', desc: '参考 Apache Shiro 官方 JspTag API 设计,拥有和原生 JspTag 相同的 API,极大的减少学习成本' } @@ -26,6 +26,7 @@ footer: - { name: 'Buession Framework', href: 'https://www.buession.com/' } - { name: 'Buession Security', href: 'https://security.buession.com/' } - { name: 'Buession Logging', href: 'https://logging.buession.com/' } + - { name: 'Buession Canal', href: 'https://canal.buession.com/' } - { name: 'Buession SpringBoot', href: 'https://springboot.buession.com/' } - { name: 'Buession SpringCloud', href: 'https://springcloud.buession.com/' } - { name: 'Buession Cas', href: 'https://cas.buession.com/' } diff --git a/src/manual/permission.md b/src/manual/permission.md index e79dc7e..5d20b1b 100644 --- a/src/manual/permission.md +++ b/src/manual/permission.md @@ -11,6 +11,7 @@ | [hasPermission](permission.html#权限-api-haspermissionpermissionname-string) | 验证用户是否具备某权限 | | [lacksPermission](permission.html#权限-api-lackspermissionpermissionname-string) | 验证用户是否不具备某权限 | | [hasAnyPermission](permission.html#权限-api-hasanypermissionpermissionnames-string[]) | 验证用户是否具有以下任意一个权限 | +| [hasAllPermissions](permission.html#权限-api-haspermissionsallpermissionnames-string[]) | 验证用户是否具有以下所有权限 | | [hasPermissionsAll](permission.html#权限-api-haspermissionsallpermissionnames-string[]) | 验证用户是否具有以下所有权限 | @@ -170,6 +171,47 @@ vue + +``` + + +### **hasAllPermissions(permissionNames: string[])** +* 类型:`Function` + +* 功能描述:验证用户是否具有以下所有权限 + +* 参数:permissionNames 权限列表 + +* 返回值:`boolean` 用户是否具有以下所有权限 + +示例: + +原生 JavaScript +```javascript + +``` + +vue +```html + +