From c42811c88613f3a880aecf6c163b29511bf2bdff Mon Sep 17 00:00:00 2001 From: alan Date: Fri, 17 May 2019 10:25:24 +0800 Subject: [PATCH] feat: add dom ready --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index a0651a9..7a5ad89 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,7 +1,7 @@ -import App from './app/app.component'; BI.DOM.ready(() => { + const app = require('./app/app.component').default; BI.createWidget({ - type:App, + type:app, element: 'body', }); });