mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-09-19 12:14:27 +08:00
fix(editor): runtime url更新后恢复当前选中状态
This commit is contained in:
parent
bba67b5533
commit
c2830fca6b
@ -363,6 +363,12 @@ export const initServiceEvents = (
|
||||
|
||||
stage.renderer?.once('runtime-ready', (runtime) => {
|
||||
runtime.updateRootConfig?.(cloneDeep(toRaw(editorService.get('root')))!);
|
||||
const page = editorService.get('page');
|
||||
const node = editorService.get('node');
|
||||
page?.id && runtime?.updatePageId?.(page.id);
|
||||
setTimeout(() => {
|
||||
node && stage?.select(toRaw(node.id));
|
||||
});
|
||||
});
|
||||
},
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user