@@ -68,19 +67,21 @@ class MainContent extends Component {
{/*
- iframe模式下需要这两个样式来调整
- .page--body { z-index: 9999; }
- .resize-helper { top: 10px }
+ iframe模式下可以使用样式控制不接收鼠标事件
+
+ .page--body { z-index: ${showIframeContent ? '7999': '1'} ; }
+ .b-label>.resize-helper { top: ${showIframeContent ? '10px': '50%'} }
+
*/}
- { showIframeContent ?
:
+ { showIframeContent ?
:
{/* 旧版本、评测等待提示--更新提示块*/}
{/*
diff --git a/public/react/src/modules/page/MainContentContainer.js b/public/react/src/modules/page/MainContentContainer.js
index c7829ac9..bd73d7c0 100644
--- a/public/react/src/modules/page/MainContentContainer.js
+++ b/public/react/src/modules/page/MainContentContainer.js
@@ -229,6 +229,10 @@ class MainContentContainer extends Component {
// arg_path 点击文件目录树时,传入的点击节点对应的path
fetchRepositoryCode( props, arg_path, type, isRetry) {
const { challenge, showSnackbar, game, shixun, hide_code } = props ? props : this.props;
+ if (shixun.vnc == true) {
+ // vnc模式下不需要加载代码
+ return true;
+ }
if (hide_code) { // 隐藏code的实训
this.setState({ codeLoading: false });
return;
@@ -269,6 +273,7 @@ class MainContentContainer extends Component {
const that = this;
// test
+ // console.log('---- fetch code')
// const _code = '"#include
\n\n// \u6c42n\u7684\u7b97\u672f\u5e73\u65b9\u6839\ndouble SquareRoot(float n)\n{\n // \u8bf7\u5728\u6b64\u6dfb\u52a0\u4ee3\u7801\uff0c\u8865\u5168\u51fd\u6570SquareRoot\n /********** Begin *********/\n\n\n /********** End **********/\n}"'
// this.oldRepositoryCode = _code;
// this.updateRepositoryCode(_code, updateCodeMirror)
diff --git a/public/react/src/modules/page/main/CodeRepositoryView.js b/public/react/src/modules/page/main/CodeRepositoryView.js
index 7b9fa48d..738ebbd7 100644
--- a/public/react/src/modules/page/main/CodeRepositoryView.js
+++ b/public/react/src/modules/page/main/CodeRepositoryView.js
@@ -412,7 +412,7 @@ class CodeRepositoryView extends Component {
{/* onClick={showFilesDrawer.bind(this, true)} */}
{ myshixun_manager == true &&
-
+
}