mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-06-19 04:01:33 +08:00
fix(data-source): 多页面时数据源依赖中可能包含其他页面的,导致更新时失败
This commit is contained in:
parent
948c194a60
commit
5c43fbfd96
@ -59,9 +59,11 @@ export const createDataSourceManager = (app: AppCore, useMock?: boolean, initial
|
||||
|
||||
const nodeIds = union([...Object.keys(condDep), ...Object.keys(dep)]);
|
||||
|
||||
const pages = app.page?.data && app.platform !== 'editor' ? [app.page.data] : dsl.items;
|
||||
|
||||
dataSourceManager.emit(
|
||||
'update-data',
|
||||
getNodes(nodeIds, dsl.items).map((node) => {
|
||||
getNodes(nodeIds, pages).map((node) => {
|
||||
if (app.platform !== 'editor') {
|
||||
node.condResult = dataSourceManager.compliedConds(node);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user