mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-04-06 03:57:56 +08:00
fix(editor): 修复通过dsl初始化代码块时,点击查看获取不到绑定的代码块的问题
This commit is contained in:
parent
134efbfb0f
commit
4e6fbab26d
@ -98,6 +98,7 @@ const setCombineRelation = async (selectedIds: string[] | string) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const viewHandler = async () => {
|
const viewHandler = async () => {
|
||||||
|
await setCombineRelation(props.model[props.name]);
|
||||||
await services?.codeBlockService.setMode(EditorMode.LIST);
|
await services?.codeBlockService.setMode(EditorMode.LIST);
|
||||||
services?.codeBlockService.setCodeEditorContent(true, combineIds.value[0]);
|
services?.codeBlockService.setCodeEditorContent(true, combineIds.value[0]);
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user