签入版本
This commit is contained in:
@@ -353,10 +353,10 @@ class ArticleLogic extends BaseTenantLogic
|
||||
```vue
|
||||
<template>
|
||||
<!-- 单权限:拥有 sys:user:add 才显示 -->
|
||||
<el-button v-perm="'sys:user:add'" type="primary">新增</el-button>
|
||||
<a-button v-perm="'sys:user:add'" type="primary">新增</a-button>
|
||||
|
||||
<!-- 多权限:拥有任一权限即显示 -->
|
||||
<el-button v-perms="['sys:user:add', 'sys:user:update']">操作</el-button>
|
||||
<a-button v-perms="['sys:user:add', 'sys:user:update']">操作</a-button>
|
||||
|
||||
<!-- 无权限的按钮直接从 DOM 移除,而非仅隐藏 -->
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user