Merge "fix: 表单编辑器变量引用" into feat-optimize-4

This commit is contained in:
yupeng12 2022-07-13 16:38:13 +08:00 committed by iCode
commit e3a9df6fe0

View File

@ -1665,8 +1665,10 @@ export class EditorManager {
let from = node;
let region = node;
while (!scope && from) {
scope = this.dataSchema.hasScope(`${from.id}-${from.type}`)
? this.dataSchema.getScope(`${from.id}-${from.type}`)
const nodeId = from.info?.id;
const type = from.info?.type;
scope = this.dataSchema.hasScope(`${nodeId}-${type}`)
? this.dataSchema.getScope(`${nodeId}-${type}`)
: undefined;
from = from.parent;
if (from?.isRegion) {