fix: auth

pull/134/head
xingyu4j 2025-06-07 15:49:27 +08:00
parent 3c92f7daab
commit de157f725b
2 changed files with 4 additions and 4 deletions

View File

@ -140,7 +140,7 @@ onMounted(async () => {
label: $t('common.edit'),
type: 'link',
icon: ACTION_ICON.EDIT,
auth: ['system:role:update'],
auth: ['system:tenant:update'],
onClick: handleEdit.bind(null, row),
},
{
@ -148,7 +148,7 @@ onMounted(async () => {
type: 'link',
danger: true,
icon: ACTION_ICON.DELETE,
auth: ['system:role:delete'],
auth: ['system:tenant:delete'],
popConfirm: {
title: $t('ui.actionMessage.deleteConfirm', [row.name]),
confirm: handleDelete.bind(null, row),

View File

@ -113,7 +113,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
label: $t('common.edit'),
type: 'link',
icon: ACTION_ICON.EDIT,
auth: ['system:role:update'],
auth: ['system:tenant-package:update'],
onClick: handleEdit.bind(null, row),
},
{
@ -121,7 +121,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
type: 'link',
danger: true,
icon: ACTION_ICON.DELETE,
auth: ['system:role:delete'],
auth: ['system:tenant-package:delete'],
popConfirm: {
title: $t('ui.actionMessage.deleteConfirm', [row.name]),
confirm: handleDelete.bind(null, row),