mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-03-05 09:47:20 +00:00
fix: 兼容 variable 历史数据格式
This commit is contained in:
parent
af1746b0be
commit
d666317d86
@ -151,6 +151,14 @@ function compatiableReducer(props: any) {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// 为了能降级到老版本,建议在后期版本去掉以下代码
|
||||||
|
if (isJSExpression(val)) {
|
||||||
|
val = {
|
||||||
|
type: 'variable',
|
||||||
|
value: val.mock,
|
||||||
|
variable: val.value,
|
||||||
|
}
|
||||||
|
}
|
||||||
newProps[key] = val;
|
newProps[key] = val;
|
||||||
});
|
});
|
||||||
return newProps;
|
return newProps;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user