|
|
|
@ -40,6 +40,10 @@ class VNCContainer extends Component {
|
|
|
|
|
getSecondDrawerWidth = () => {
|
|
|
|
|
return $('#game_right_contents').width() - firstDrawerWidth
|
|
|
|
|
}
|
|
|
|
|
onEditBlur = () => {
|
|
|
|
|
console.log('blurblur')
|
|
|
|
|
this.doFileUpdateRequestOnCodeMirrorBlur()
|
|
|
|
|
}
|
|
|
|
|
doFileUpdateRequestOnCodeMirrorBlur = () => {
|
|
|
|
|
if (!this.currentPath) {
|
|
|
|
|
console.error('未找到文件path')
|
|
|
|
@ -83,6 +87,7 @@ class VNCContainer extends Component {
|
|
|
|
|
isEditablePath={shixun.code_edit_permission}
|
|
|
|
|
shixun={this.props.shixun}
|
|
|
|
|
doFileUpdateRequestOnCodeMirrorBlur={this.doFileUpdateRequestOnCodeMirrorBlur}
|
|
|
|
|
onEditBlur={this.onEditBlur}
|
|
|
|
|
></TPIMonaco>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|