From 6370889c766669c03c84d9eb242fb86926e84f79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8A=9B=E7=9A=93?= Date: Thu, 3 Sep 2020 18:40:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=A7=BB=E9=99=A4=20isInSimulator=20?= =?UTF-8?q?=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/editor-preset-vision/src/bundle/prototype.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/packages/editor-preset-vision/src/bundle/prototype.ts b/packages/editor-preset-vision/src/bundle/prototype.ts index c1de2e6f1..d842563b1 100644 --- a/packages/editor-preset-vision/src/bundle/prototype.ts +++ b/packages/editor-preset-vision/src/bundle/prototype.ts @@ -8,7 +8,6 @@ import { TransformStage, } from '@ali/lowcode-designer'; import { intl } from '@ali/lowcode-editor-core'; -import { isInSimulator } from '@ali/lowcode-utils'; import { OldPropConfig, OldPrototypeConfig, @@ -215,10 +214,6 @@ class Prototype { static removeGlobalPropsConfigure = removeGlobalPropsConfigure; static overridePropsConfigure = overridePropsConfigure; static create(config: OldPrototypeConfig | ComponentMetadata | ComponentMeta, extraConfigs: any = null, lookup: boolean = false) { - // 目前 vc-xxx 会在设计器和渲染 simulator iframe 中执行两遍,在 simulator 中不需要重新创建,直接复用外层的 - if (isInSimulator()) { - lookup = true; - } return new Prototype(config, extraConfigs, lookup); }