From 9a0a44877852f9a6f3fbef7c759f9ca8b18a5285 Mon Sep 17 00:00:00 2001 From: "muyun.my" Date: Tue, 22 Sep 2020 15:57:36 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=B7=BB=E5=8A=A0=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/plugin-datasource-pane/src/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/plugin-datasource-pane/src/index.tsx b/packages/plugin-datasource-pane/src/index.tsx index de74cc461..ed77c20ea 100644 --- a/packages/plugin-datasource-pane/src/index.tsx +++ b/packages/plugin-datasource-pane/src/index.tsx @@ -118,10 +118,10 @@ export default class DataSourcePanePlugin extends PureComponent { const { editor } = this.props; + // @TODO 姿势是否最优? if (editor.get('designer')) { const docSchema = editor.get('designer').project.currentDocument.schema; _set(docSchema, 'componentsTree[0].dataSource', schema); - debugger; editor.get('designer').project.currentDocument.import(docSchema); console.log('editor schema', editor.get('designer').schema); }