Skip to content

Commit f64f840

Browse files
authored
Update 2020-11-05-rbac-business.markdown
1 parent 8c1c071 commit f64f840

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

_posts/doc/module/2020-11-05-rbac-business.markdown

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,3 +193,11 @@ _以下效果来自`admin-business`_
193193
public function clearCache(UserAuth $userAuth = null)
194194
```
195195

196+
## 在页面中鉴权
197+
198+
```twig
199+
{% if userPermissions.entry_delete is defined %}
200+
<el-button size="mini" type="danger" @click="del()">删除</el-button>
201+
{% endif %}
202+
```
203+

0 commit comments

Comments
 (0)