fix: online editer eol error
This commit is contained in:
@@ -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">
|
||||||
|
|||||||
@@ -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%"
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user