Skip to content

Commit

Permalink
fix: 🐛 #286 多项目部署时 inputs 入参会被组件代码篡改
Browse files Browse the repository at this point in the history
  • Loading branch information
xsahxl committed Nov 9, 2021
1 parent d952145 commit 27bb7f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/specification/parse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { HandleError } from '../error';
import { startsWith, get } from 'lodash';
import core from '../utils/core';
const { jsyaml: yaml } = core;
import { cloneDeep } from 'lodash';

interface MAP_OBJECT {
[key: string]: any;
Expand Down Expand Up @@ -183,7 +184,7 @@ export class Parse {
} else {
variable = _variable;
}
return variable;
return cloneDeep(variable);
}

async getRealVariables(parsedObj: any) {
Expand Down

0 comments on commit 27bb7f4

Please sign in to comment.