From b2f632d34a9628bec0400f40f46bf1ba61bd9586 Mon Sep 17 00:00:00 2001 From: myifeng Date: Tue, 10 Aug 2021 18:20:13 +0800 Subject: [PATCH] Use Camel-Case --- .../ConfigEditor/NewConfigEditor.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/console-ui/src/pages/ConfigurationManagement/ConfigEditor/NewConfigEditor.js b/console-ui/src/pages/ConfigurationManagement/ConfigEditor/NewConfigEditor.js index 89e2a7338..60c3b3672 100644 --- a/console-ui/src/pages/ConfigurationManagement/ConfigEditor/NewConfigEditor.js +++ b/console-ui/src/pages/ConfigurationManagement/ConfigEditor/NewConfigEditor.js @@ -184,11 +184,11 @@ class ConfigEditor extends React.Component { openDiff(cbName) { this.diffcb = cbName; - let leftvalue = this.monacoEditor.getValue(); - let rightvalue = this.codeVal || ''; - leftvalue = leftvalue.replace(/\r\n/g, '\n').replace(/\n/g, '\r\n'); - rightvalue = rightvalue.replace(/\r\n/g, '\n').replace(/\n/g, '\r\n'); - this.diffEditorDialog.current.getInstance().openDialog(leftvalue, rightvalue); + let leftValue = this.monacoEditor.getValue(); + let rightValue = this.codeVal || ''; + leftValue = leftValue.replace(/\r\n/g, '\n').replace(/\n/g, '\r\n'); + rightValue = rightValue.replace(/\r\n/g, '\n').replace(/\n/g, '\r\n'); + this.diffEditorDialog.current.getInstance().openDialog(leftValue, rightValue); } clickTab(tabActiveKey) {