Skip to content

Commit

Permalink
优化过长的代码行
Browse files Browse the repository at this point in the history
  • Loading branch information
yinlianghui committed Oct 12, 2023
1 parent 355e004 commit 100ed51
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 100ed51

Please sign in to comment.