fix(plugin-acl): adjust roles collection options

This commit is contained in:
chenos 2022-02-19 17:15:42 +08:00
parent 407f9d2d85
commit 72b66a028c

View File

@ -7,6 +7,7 @@ export default {
{
type: 'uid',
name: 'name',
prefix: 'r_',
primaryKey: true,
},
{
@ -43,12 +44,14 @@ export default {
type: 'belongsToMany',
name: 'menuUiSchemas',
target: 'uiSchemas',
targetKey: 'uid',
},
{
type: 'hasMany',
name: 'resources',
target: 'rolesResources',
sourceKey: 'name',
targetKey: 'name',
},
],
} as CollectionOptions;