Use Camel-Case

This commit is contained in:
myifeng 2021-08-10 18:20:13 +08:00
parent ec1ea55536
commit b2f632d34a

View File

@ -184,11 +184,11 @@ class ConfigEditor extends React.Component {
openDiff(cbName) { openDiff(cbName) {
this.diffcb = cbName; this.diffcb = cbName;
let leftvalue = this.monacoEditor.getValue(); let leftValue = this.monacoEditor.getValue();
let rightvalue = this.codeVal || ''; let rightValue = this.codeVal || '';
leftvalue = leftvalue.replace(/\r\n/g, '\n').replace(/\n/g, '\r\n'); leftValue = leftValue.replace(/\r\n/g, '\n').replace(/\n/g, '\r\n');
rightvalue = rightvalue.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); this.diffEditorDialog.current.getInstance().openDialog(leftValue, rightValue);
} }
clickTab(tabActiveKey) { clickTab(tabActiveKey) {