mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-12 11:20:11 +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,
|
requestHandlersMap,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
engineConfig.onGot('device', (device) => {
|
||||||
|
this.setState({
|
||||||
|
device,
|
||||||
|
});
|
||||||
|
});
|
||||||
const { components, packages, extraEnvironment, utils } = assets;
|
const { components, packages, extraEnvironment, utils } = assets;
|
||||||
const state = {
|
const state = {
|
||||||
componentMetadatas: components || [],
|
componentMetadatas: components || [],
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user