mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 07:06:06 +00:00
fix: linkage rules cause abnormal field display (#2913)
This commit is contained in:
parent
101e1f8f97
commit
bbe7eed314
@ -146,12 +146,16 @@ const WithForm = (props: WithFormProps) => {
|
||||
variables,
|
||||
localVariables,
|
||||
});
|
||||
// 如果是 linkageRules 数组的最后一个元素
|
||||
if (index === linkageRules.length - 1) {
|
||||
setTimeout(() =>
|
||||
linkagefields.map((v) => {
|
||||
v.linkageProperty = {};
|
||||
}),
|
||||
);
|
||||
// 等待异步操作完成
|
||||
await new Promise((resolve) => setTimeout(resolve, 0));
|
||||
// 清空 linkagefields 数组中对象的属性
|
||||
linkagefields.forEach((v) => {
|
||||
v.linkageProperty = {};
|
||||
});
|
||||
// 清空 linkagefields 数组
|
||||
linkagefields.length = 0;
|
||||
}
|
||||
}),
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user