fix: missing parameters

This commit is contained in:
chenos 2021-11-30 16:43:44 +08:00
parent 61dcd45a83
commit d817ec4c7b
3 changed files with 6 additions and 1 deletions

View File

@ -782,7 +782,7 @@ function EditFieldButton() {
}} }}
schema={{ schema={{
type: 'object', type: 'object',
properties: clone(schema.properties), properties: clone(schema?.properties),
}} }}
/> />
</FormProvider> </FormProvider>

View File

@ -27,18 +27,21 @@ export default {
type: 'hasMany', type: 'hasMany',
name: 'actionPermissions', name: 'actionPermissions',
target: 'action_permissions', target: 'action_permissions',
state: 0,
}, },
{ {
type: 'belongsToMany', type: 'belongsToMany',
name: 'users', name: 'users',
target: 'users', target: 'users',
through: 'roles_users', through: 'roles_users',
state: 0,
}, },
{ {
type: 'belongsToMany', type: 'belongsToMany',
name: 'ui_schemas', name: 'ui_schemas',
target: 'ui_schemas', target: 'ui_schemas',
through: 'roles_ui_schemas', through: 'roles_ui_schemas',
state: 0,
}, },
], ],
} as TableOptions; } as TableOptions;

View File

@ -29,6 +29,7 @@ export default {
type: 'createdBy', type: 'createdBy',
name: typeof createdBy === 'string' ? createdBy : 'createdBy', name: typeof createdBy === 'string' ? createdBy : 'createdBy',
target: 'users', target: 'users',
state: 0,
}); });
} }
if (updatedBy !== false) { if (updatedBy !== false) {
@ -36,6 +37,7 @@ export default {
type: 'updatedBy', type: 'updatedBy',
name: typeof updatedBy === 'string' ? updatedBy : 'updatedBy', name: typeof updatedBy === 'string' ? updatedBy : 'updatedBy',
target: 'users', target: 'users',
state: 0,
}); });
} }
}); });