diff --git a/src/renderer/components/editor/Editor.vue b/src/renderer/components/editor/Editor.vue index 66640c88..56b78a26 100644 --- a/src/renderer/components/editor/Editor.vue +++ b/src/renderer/components/editor/Editor.vue @@ -324,6 +324,10 @@ async function format() { ipc.on('main-menu:format', format) +function onSplitterLayout() { + editor?.refresh() +} + onMounted(() => { init() }) @@ -339,8 +343,9 @@ onMounted(() => { v-show="isShowEditor" direction="vertical" class="overflow-auto" + @layout="onSplitterLayout" > - +