diff --git a/public/react/src/modules/page/MainContent.js b/public/react/src/modules/page/MainContent.js index ff9f753d..f5f66abf 100644 --- a/public/react/src/modules/page/MainContent.js +++ b/public/react/src/modules/page/MainContent.js @@ -74,55 +74,55 @@ class MainContent extends Component { */}
-
-
-
-
- - {/* 选择题或编程题 */} - {/* readRepoTimeout 如果读取代码超时,显示重新加载按钮,重新拉取代码 */} - { - st === 0 - ? - readRepoTimeout === true ? : - - -
- -
-
- : - } - - {/* */} -
-
- {/*
*/} -
-
- {/* 测试结果、评测信息区域 */} - { loading ? - : - st === 0 - ? - : - } -
-
-
-
-
- -
- -
+
+
+
+
+ + {/* 选择题或编程题 */} + {/* readRepoTimeout 如果读取代码超时,显示重新加载按钮,重新拉取代码 */} + { + st === 0 + ? + readRepoTimeout === true ?
+ 代码加载失败, this.props.fetchRepositoryCode(this.props, null, null, true)}>重试 +
: + + +
+ +
+
+ : + } + + {/* */} +
+
+ {/*
*/} +
+
+ {/* 测试结果、评测信息区域 */} + { loading ? + : + st === 0 + ? + : + } +
+
+
+
+ + +
+ +