mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-03 20:39:07 +08:00
Merge branch 'master' into pre-release
This commit is contained in:
commit
eb655b738a
@ -84,11 +84,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