From 88e500813986f3b84ba8dc6fdf02d6357aaac51b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8A=9B=E7=9A=93?= Date: Thu, 3 Sep 2020 19:54:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A1=A5=E5=85=A8=20packageName,=20?= =?UTF-8?q?=E5=90=A6=E5=88=99=E5=9C=A8=E7=BB=84=E4=BB=B6=E9=9D=A2=E6=9D=BF?= =?UTF-8?q?=E4=BC=9A=E8=A2=AB=E9=9A=90=E8=97=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/editor-preset-vision/src/bundle/bundle.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/editor-preset-vision/src/bundle/bundle.ts b/packages/editor-preset-vision/src/bundle/bundle.ts index 0c49bc098..4e2cc3f6e 100644 --- a/packages/editor-preset-vision/src/bundle/bundle.ts +++ b/packages/editor-preset-vision/src/bundle/bundle.ts @@ -126,7 +126,7 @@ export default class Bundle { */ if (bundles.length >= 2) { const prototype = bundles[0]; - const metadata = upgradeMetadata(prototype.options); + const metadata = upgradeMetadata({ ...prototype.options, packageName: prototype.packageName }); prototype.meta = designer.createComponentMeta(metadata); const prototypeView = bundles[1]; prototype.setView(prototypeView);