|
|
@ -530,7 +530,7 @@ class MainContentContainer extends Component {
|
|
|
|
let codeContent = this.state.repositoryCode;
|
|
|
|
let codeContent = this.state.repositoryCode;
|
|
|
|
if (window['editor_CodeMirror']) {
|
|
|
|
if (window['editor_CodeMirror']) {
|
|
|
|
codeContent = window.editor_CodeMirror.getValue();
|
|
|
|
codeContent = window.editor_CodeMirror.getValue();
|
|
|
|
} else if (window.editor_monaco) {
|
|
|
|
} else if (window.editor_monaco && window.editor_monaco.getModel()) { // (编程切选择题) 如果dispose了,model为空
|
|
|
|
codeContent = window.editor_monaco.getValue()
|
|
|
|
codeContent = window.editor_monaco.getValue()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (checkIfCodeChanged === true && this.oldRepositoryCode == codeContent) {
|
|
|
|
if (checkIfCodeChanged === true && this.oldRepositoryCode == codeContent) {
|
|
|
|