修复文件为空无法保存

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
@@ -167,9 +167,6 @@ const Script = () => {
folding: false,
glyphMargin: false,
}}
onChange={(val) => {
setValue((val as string).replace(/\r\n/g, '\n'));
}}
/>
)}
<EditModal