fix: action linkage rule (#4980)

This commit is contained in:
Katherine 2024-08-04 15:54:08 +08:00 committed by GitHub
parent c902875f3c
commit 021e2094f4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -132,6 +132,8 @@ export const linkageAction = async ({
case ActionType.Active: case ActionType.Active:
if (await conditionAnalyses({ ruleGroup: condition, variables, localVariables })) { if (await conditionAnalyses({ ruleGroup: condition, variables, localVariables })) {
disableResult.push(false); disableResult.push(false);
} else {
disableResult.push(field.disabled);
} }
field.stateOfLinkageRules = { field.stateOfLinkageRules = {
...field.stateOfLinkageRules, ...field.stateOfLinkageRules,