mirror of
https://github.com/steedos/steedos-platform
synced 2024-11-21 07:40:46 +00:00
fix: 对象设计器存储相关字段异常.
This commit is contained in:
parent
91da76433b
commit
80be0ee050
@ -11,7 +11,7 @@
|
|||||||
"author": "steedos",
|
"author": "steedos",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@steedos-builder/amis-editor": "6.3.0-beta.12",
|
"@steedos-builder/amis-editor": "6.3.0-beta.13",
|
||||||
"@steedos/ee_sso-oidc": "2.7.10-beta.11",
|
"@steedos/ee_sso-oidc": "2.7.10-beta.11",
|
||||||
"@steedos/service-analytics": "2.7.10-beta.11",
|
"@steedos/service-analytics": "2.7.10-beta.11",
|
||||||
"@steedos/service-ancillary": "2.7.10-beta.11",
|
"@steedos/service-ancillary": "2.7.10-beta.11",
|
||||||
|
@ -345,7 +345,7 @@ module.exports = {
|
|||||||
visible_on: group.visible_on,
|
visible_on: group.visible_on,
|
||||||
body: _.map(items, (field)=>{
|
body: _.map(items, (field)=>{
|
||||||
return {
|
return {
|
||||||
type: `sfield-${field.type}`,
|
type: `sfield-${_.camelCase(field.type).toLowerCase()}`,
|
||||||
config: Object.assign({amis: {name: field.name}}, field)
|
config: Object.assign({amis: {name: field.name}}, field)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -505,8 +505,8 @@ module.exports = {
|
|||||||
}
|
}
|
||||||
// 循环需要删除的字段
|
// 循环需要删除的字段
|
||||||
for (const fieldName of deleteFields) {
|
for (const fieldName of deleteFields) {
|
||||||
const field = _.find(dbFields, { name: fieldName })._id;
|
const field = _.find(dbFields, { name: fieldName });
|
||||||
try {
|
try {
|
||||||
const id = field._id;
|
const id = field._id;
|
||||||
await object_fields.directDelete(id);
|
await object_fields.directDelete(id);
|
||||||
log.delete.success.push(fieldName);
|
log.delete.success.push(fieldName);
|
||||||
|
Loading…
Reference in New Issue
Block a user