diff --git a/packages/@steedos-widgets/amis-lib/src/lib/converter/amis/index.js b/packages/@steedos-widgets/amis-lib/src/lib/converter/amis/index.js index de097a3a4..524741bb5 100644 --- a/packages/@steedos-widgets/amis-lib/src/lib/converter/amis/index.js +++ b/packages/@steedos-widgets/amis-lib/src/lib/converter/amis/index.js @@ -508,7 +508,11 @@ export async function getObjectDetail(objectSchema, recordId, ctx){ "formData": "$$" }, wrapWithPanel: false, - body: await getFormBody(map(fields, (field)=>{field.readonly = true; return field;}), map(formFields, (field)=>{field.readonly = true; return field;}), Object.assign({}, ctx, {showSystemFields: true,fieldGroups: objectSchema.field_groups})), + body: await getFormBody( + map(fields, (field) => { field.readonly = true; return field; }), + map(formFields, (field) => { field.readonly = true; return field; }), + Object.assign({}, ctx, { showSystemFields: true, fieldGroups: objectSchema.field_groups }) + ), className: 'steedos-amis-form bg-white', actions: [], // 不显示表单默认的提交按钮 onEvent: {