Skip to content

Commit

Permalink
fix: editor manager getContentSchemas 中 type 获取问题
Browse files Browse the repository at this point in the history
  • Loading branch information
allenve committed Oct 20, 2023
1 parent 4125f16 commit e41752e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/amis-editor-core/src/manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1983,7 +1983,8 @@ export class EditorManager {

// 更新组件树中的所有上下文数据声明为最新数据
while (scope) {
const [nodeId, type] = scope.id.split('-');
const [nodeId] = scope.id.split('-');
const type = scope.id.replace(`${nodeId}-`, '');
const scopeNode = this.store.getNodeById(nodeId, type);

// 拿非重复组件id的父组件作为主数据域展示,如CRUD,不展示表格,只展示增删改查信息,避免变量面板出现两份数据
Expand Down

0 comments on commit e41752e

Please sign in to comment.