From 82c5d2ea27071a8c3e6bb1a98e6aa1f525e7c0a4 Mon Sep 17 00:00:00 2001 From: "carlos.czw" Date: Sun, 30 Aug 2020 17:43:22 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BD=BF=E7=94=A8=E6=B7=B1=E6=8B=B7?= =?UTF-8?q?=E8=B4=9D=E8=B5=8B=E5=80=BC=E5=B9=B6=E4=BF=AE=E6=94=B9=20dataSo?= =?UTF-8?q?urce.list=20=E9=81=BF=E5=85=8D=E5=BD=B1=E5=93=8D=20legao=20?= =?UTF-8?q?=E7=8E=B0=E6=9C=89=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/editor-preset-vision/src/editor.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/editor-preset-vision/src/editor.ts b/packages/editor-preset-vision/src/editor.ts index eea70b61d..51294d0ff 100644 --- a/packages/editor-preset-vision/src/editor.ts +++ b/packages/editor-preset-vision/src/editor.ts @@ -1,5 +1,5 @@ import { isJSBlock, isJSExpression, isJSSlot, isI18nData } from '@ali/lowcode-types'; -import { isPlainObject, hasOwnProperty } from '@ali/lowcode-utils'; +import { isPlainObject, hasOwnProperty, cloneDeep } from '@ali/lowcode-utils'; import { globalContext, Editor } from '@ali/lowcode-editor-core'; import { Designer, LiveEditing, TransformStage, Node, getConvertedExtraKey } from '@ali/lowcode-designer'; import Outline, { OutlineBackupPane, getTreeMaster } from '@ali/lowcode-plugin-outline-pane'; @@ -306,7 +306,7 @@ designer.addPropsReducer(deepValueParser, TransformStage.Render); designer.addPropsReducer((props: any, node: Node) => { if (node.isRoot()) { if (props.dataSource) { - const { online } = props.dataSource; + const online = cloneDeep(props.dataSource.online); online.forEach((item: any) => { const newParam: any = {}; if (item.options && item.options.params && item.options.params.length) {