fix: editor manager getContentSchemas 中 type 获取问题 (#8443)

This commit is contained in:
Allen 2023-10-20 13:37:58 +08:00 committed by GitHub
parent 60b1253b8d
commit d5b37d1ed0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1983,7 +1983,8 @@ export class EditorManager {
// 更新组件树中的所有上下文数据声明为最新数据 // 更新组件树中的所有上下文数据声明为最新数据
while (scope) { 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); const scopeNode = this.store.getNodeById(nodeId, type);
// 拿非重复组件id的父组件作为主数据域展示如CRUD不展示表格只展示增删改查信息避免变量面板出现两份数据 // 拿非重复组件id的父组件作为主数据域展示如CRUD不展示表格只展示增删改查信息避免变量面板出现两份数据