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); }