feat(editor): change switch module order

This commit is contained in:
Bowen Tan 2023-01-18 18:08:11 +08:00
parent e9091c8cc6
commit 4e545a0bcc

View File

@ -103,8 +103,8 @@ export class EditorStore {
this.setComponents([]);
setTimeout(() => {
// set new components
this.setModuleDependencies(target.metadata?.exampleProperties);
this.setSelectedComponentId(this.originComponents[0]?.id || '');
this.setModuleDependencies(target.metadata?.exampleProperties);
this.eventBus.send('componentsRefresh', this.originComponents);
this.setComponents(this.originComponents);
}, 0);