From 9ddda1db9e50f91c3865d841e81da0f52599b498 Mon Sep 17 00:00:00 2001 From: liujuping Date: Fri, 18 Aug 2023 17:00:56 +0800 Subject: [PATCH] feat(config): add onGot in config.device --- packages/plugin-designer/src/index.tsx | 5 +++++ 1 file changed, 5 insertions(+) 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 || [],