mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-10 18:03:01 +00:00
feat(config): add onGot in config.device
This commit is contained in:
parent
8b5e2b47c6
commit
9ddda1db9e
@ -72,6 +72,11 @@ export default class DesignerPlugin extends PureComponent<PluginProps, DesignerP
|
||||
requestHandlersMap,
|
||||
});
|
||||
});
|
||||
engineConfig.onGot('device', (device) => {
|
||||
this.setState({
|
||||
device,
|
||||
});
|
||||
});
|
||||
const { components, packages, extraEnvironment, utils } = assets;
|
||||
const state = {
|
||||
componentMetadatas: components || [],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user