Fix: Bugs fixed #10703 (#11132)

### What problem does this PR solve?

Fix: Bugs fixed #10703

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
chanx
2025-11-10 14:12:45 +08:00
committed by GitHub
parent d207291217
commit 726473fd39
8 changed files with 69 additions and 623 deletions

View File

@ -356,15 +356,19 @@ export const buildDslGobalVariables = (
return { globals: dsl.globals, variables: dsl.variables || {} };
}
let gobalVariablesTemp = {};
let gobalVariablesTemp: Record<string, any> = {};
let gobalSystem: Record<string, any> = {};
Object.keys(dsl.globals)?.forEach((key) => {
if (key.indexOf('sys') > -1) {
gobalSystem[key] = dsl.globals[key];
}
});
Object.keys(gobalVariables).forEach((key) => {
gobalVariablesTemp = {
['env.' + key]: gobalVariables[key].value,
};
gobalVariablesTemp['env.' + key] = gobalVariables[key].value;
});
const gobalVariablesResult = {
...dsl.globals,
...gobalSystem,
...gobalVariablesTemp,
};
return { globals: gobalVariablesResult, variables: gobalVariables };