feat: 补充全局自定义权限指令

This commit is contained in:
xuziqiang
2024-06-28 14:49:40 +08:00
parent 9f1620c9f8
commit edfc11825d
4 changed files with 67 additions and 1 deletions

View File

@@ -79,7 +79,9 @@
<a-row>
<a-col :span="8" class="tree">
<a-space wrap style="margin-bottom: 16px; justify-content: flex-start">
<ns-button type="primary" @click="rolePipe(addUser, true)"> 新增角色 </ns-button>
<ns-button v-auth="'userAdd'" type="primary" @click="rolePipe(addUser, true)">
新增角色
</ns-button>
<ns-button type="primary" @click="rolePipe(addUserSon)">新增子角色</ns-button>
<ns-button type="primary" @click="rolePipe(deleteUser)"> 删除 </ns-button>
</a-space>