同步权限

This commit is contained in:
阿辉
2025-07-06 16:54:26 +08:00
parent a2e07a89e1
commit 483863e238
5 changed files with 397 additions and 382 deletions

View File

@@ -77,7 +77,7 @@ export const createCrudOptions = function ({crudExpose, context}: CreateCrudOpti
actionbar: {
buttons: {
add: {
show: auth('btn:Create')
show: auth('menu:CreateButton')
},
batchAdd: {
show: true,
@@ -108,10 +108,10 @@ export const createCrudOptions = function ({crudExpose, context}: CreateCrudOpti
edit: {
icon: '',
type: 'primary',
show: auth('btn:Update')
show: auth('menu:UpdateButton')
},
remove: {
show: auth('btn:Delete')
show: auth('menu:DeleteButton')
},
},
},