修复文件为空无法保存

This commit is contained in:
hanhh
2021-08-03 19:03:41 +08:00
parent d8587b64a5
commit 9e4b41ce48
4 changed files with 6 additions and 11 deletions
-3
View File
@@ -179,9 +179,6 @@ const Log = () => {
glyphMargin: false,
wordWrap: 'on',
}}
onChange={(val, ev) => {
setValue((val as string).replace(/\r\n/g, '\n'));
}}
/>
)}
</div>