fix: 修复角色详情授权用户不能删除问题

This commit is contained in:
“huailei000” 2023-02-03 11:09:43 +08:00 committed by huailei
parent 4bae678f69
commit cb6139c736

View File

@ -70,7 +70,7 @@ export default {
hasUpdate: false,
hasClone: false,
canDelete: ({ row }) => {
return this.$hasPerm(`rbac.delete_${row.scope.value}rolebinding`)
return this.$hasPerm(`rbac.delete_${row.scope}rolebinding`)
}
}
}