From b0538f6e3c40d5dfc1946c93e11577af7814aefd Mon Sep 17 00:00:00 2001 From: mcchampions <1309635304@qq.com> Date: Wed, 14 Aug 2024 21:22:30 +0800 Subject: [PATCH] Update config-editor.tsx --- src/pages/utilities/config-editor.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/pages/utilities/config-editor.tsx b/src/pages/utilities/config-editor.tsx index c3360bc..31d83e4 100644 --- a/src/pages/utilities/config-editor.tsx +++ b/src/pages/utilities/config-editor.tsx @@ -96,7 +96,11 @@ const ConfigEditorPage: React.FC = () => { // Get the key and value const splitLine = line.split(':'); splitLine[0] = splitLine[0].trim(); - splitLine[1] = splitLine[1].trim(); + let val = ''; + for (let j = 1;j { newConfig[currentSection] = newConfig[currentSection] || {}; newConfig[currentSection][splitLine[0]] = { desc: currentComment, - value: splitLine[1], + value: val, line: i };