From b44d3ea5719921b5c56f9a44f2a7f34ca3dc3094 Mon Sep 17 00:00:00 2001 From: raojinlin Date: Thu, 22 Feb 2024 18:07:33 +0800 Subject: [PATCH] fix code styles --- frontend/src/components/content_value/ContentEditor.vue | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/frontend/src/components/content_value/ContentEditor.vue b/frontend/src/components/content_value/ContentEditor.vue index c3629fe..91732c6 100644 --- a/frontend/src/components/content_value/ContentEditor.vue +++ b/frontend/src/components/content_value/ContentEditor.vue @@ -24,7 +24,7 @@ const props = defineProps({ }, }) -const emit = defineEmits(['reset', 'input', 'save', 'scroll']) +const emit = defineEmits(['reset', 'input', 'save']) const scrollTop = ref(0) @@ -116,9 +116,8 @@ watch( if (editorNode != null) { editorNode.setValue(content) editorNode.onDidLayoutChange(() => { - if (scrollTop.value > 0) { - console.log(scrollTop.value); - editorNode.setScrollTop(scrollTop.value); + if (scrollTop.value > 0) { + editorNode.setScrollTop(scrollTop.value) } }) await nextTick(() => emit('reset', content))