mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-17 01:14:50 +08:00
修复windows换行符
This commit is contained in:
@@ -34,7 +34,7 @@ const Config = () => {
|
||||
};
|
||||
|
||||
const updateConfig = () => {
|
||||
const content = editorRef.current.getValue(1);
|
||||
const content = editorRef.current.getValue().replace(/\r\n/g, '\n');
|
||||
|
||||
request
|
||||
.post(`${config.apiPrefix}configs/save`, {
|
||||
|
||||
Reference in New Issue
Block a user