mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-05 05:28:37 +08:00
amis-saas-6877 [Bug] 「amis编辑器」容器内放置service组件出现渲染异常
Change-Id: I32c612d545554c6be6555cfdb272bec8d0f450e4
This commit is contained in:
parent
3275ebe5c6
commit
47089bf35a
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user