From 2de06763fc828392aaa05c9feaf2a39a3b931bc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=87=91=E7=A6=85?= Date: Sun, 16 Aug 2020 16:59:46 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B5=84=E6=BA=90=E5=8A=A0=E8=BD=BD=E5=AE=8C?= =?UTF-8?q?=E6=88=90=E5=90=8E=E5=86=8D=E9=A2=84=E8=A7=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/plugin-sample-preview/src/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/plugin-sample-preview/src/index.tsx b/packages/plugin-sample-preview/src/index.tsx index e5a4609e3..5a1efd7b0 100644 --- a/packages/plugin-sample-preview/src/index.tsx +++ b/packages/plugin-sample-preview/src/index.tsx @@ -37,7 +37,7 @@ const SamplePreview = ({ editor }: PluginProps) => { // TODO asset may cause pollution const assetLoader = new AssetLoader(); - assetLoader.load(libraryAsset); + await assetLoader.load(libraryAsset); const components = buildComponents(libraryMap, componentsMap); console.log('components', components);