From 5464aa8eaf415dbc412bf3a25b6d6acd587fd502 Mon Sep 17 00:00:00 2001 From: jmal Date: Wed, 27 Nov 2024 10:09:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dtxt=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E6=8D=A2=E8=A1=8C=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/preview/SimTextPreview.vue | 2 +- src/utils/file-type.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/preview/SimTextPreview.vue b/src/components/preview/SimTextPreview.vue index b6fbc1b..065c47f 100644 --- a/src/components/preview/SimTextPreview.vue +++ b/src/components/preview/SimTextPreview.vue @@ -200,7 +200,7 @@ return{ lightTheme: true, contentsHide: true, - defalutLanguage: 'redis', + defalutLanguage: 'txt', lineWrapping: false, moblie: false, panelReadOnly: true, diff --git a/src/utils/file-type.js b/src/utils/file-type.js index 5581588..2877ff6 100644 --- a/src/utils/file-type.js +++ b/src/utils/file-type.js @@ -21,7 +21,7 @@ monaco.languages.getLanguages().forEach(language => { // 换行 export const lineWrapping = [ - 'txt' + '' ] export const iconClass = new Map()