fix code styles

This commit is contained in:
raojinlin 2024-02-22 18:07:33 +08:00
parent 62c0079a8d
commit b44d3ea571
1 changed files with 3 additions and 4 deletions

View File

@ -24,7 +24,7 @@ const props = defineProps({
},
})
const emit = defineEmits(['reset', 'input', 'save', 'scroll'])
const emit = defineEmits(['reset', 'input', 'save'])
const scrollTop = ref(0)
@ -117,8 +117,7 @@ watch(
editorNode.setValue(content)
editorNode.onDidLayoutChange(() => {
if (scrollTop.value > 0) {
console.log(scrollTop.value);
editorNode.setScrollTop(scrollTop.value);
editorNode.setScrollTop(scrollTop.value)
}
})
await nextTick(() => emit('reset', content))