diff --git a/packages/plugin-designer/src/index.tsx b/packages/plugin-designer/src/index.tsx index 90eefaaba..51b81ff9d 100644 --- a/packages/plugin-designer/src/index.tsx +++ b/packages/plugin-designer/src/index.tsx @@ -72,6 +72,11 @@ export default class DesignerPlugin extends PureComponent { + this.setState({ + device, + }); + }); const { components, packages, extraEnvironment, utils } = assets; const state = { componentMetadatas: components || [],