amis-saas-6877 [Bug] 「amis编辑器」容器内放置service组件出现渲染异常

Change-Id: I32c612d545554c6be6555cfdb272bec8d0f450e4
This commit is contained in:
2betop 2022-09-16 12:13:25 +08:00
parent 3275ebe5c6
commit 47089bf35a

View File

@ -82,11 +82,10 @@ export function makeWrapper(
closestScope = manager.dataSchema.getScope(
`${from.id}-${from.type}`
);
} else if (!from.parent) {
closestScope = manager.dataSchema.getScope('root');
}
}
from = from.parent;
// node.parent 是找不到 root 那层的,所以需要自己加逻辑
from = from.parentId === 'root' ? store.root : from.parent;
}
if (closestScope) {