fix: online editer eol error

This commit is contained in:
engigu
2026-01-14 14:37:26 +08:00
parent 7b057189e1
commit 8c06a9703f
2 changed files with 8 additions and 2 deletions
+4 -1
View File
@@ -411,7 +411,10 @@ onUnmounted(() => {
tabSize: 4, tabSize: 4,
insertSpaces: true, insertSpaces: true,
readOnly: !isEditMode, readOnly: !isEditMode,
domReadOnly: !isEditMode domReadOnly: !isEditMode,
files: {
eol: '\n'
}
}" }"
/> />
<div v-else class="h-full flex items-center justify-center text-muted-foreground text-sm"> <div v-else class="h-full flex items-center justify-center text-muted-foreground text-sm">
+4 -1
View File
@@ -308,7 +308,10 @@ onMounted(loadTree)
scrollBeyondLastLine: false, scrollBeyondLastLine: false,
automaticLayout: true, automaticLayout: true,
tabSize: 2, tabSize: 2,
wordWrap: 'on' wordWrap: 'on',
files: {
eol: '\n'
}
}" }"
style="height: 100%" style="height: 100%"
/> />