Merge branch 'master' into pre-release

This commit is contained in:
jiatianqi 2022-09-28 14:47:26 +08:00
commit eb655b738a

View File

@ -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) {