diff --git a/public/react/src/modules/tpm/shixunchild/Challenges/Challenges.js b/public/react/src/modules/tpm/shixunchild/Challenges/Challenges.js
index 5aa95f4a1..9c08f5a25 100644
--- a/public/react/src/modules/tpm/shixunchild/Challenges/Challenges.js
+++ b/public/react/src/modules/tpm/shixunchild/Challenges/Challenges.js
@@ -14,7 +14,8 @@ import '../shixunchildCss/Challenges.css';
import AccountProfile from"../../../user/AccountProfile";
-const $ = window.$;
+import Showmarkdown from "./Showmarkdown";
+
class Challenges extends Component {
constructor(props) {
@@ -118,16 +119,16 @@ class Challenges extends Component {
}
updatamakedown = (id) => {
- setTimeout(() => {
- var shixunDescr = window.editormd.markdownToHTML(id, {
- htmlDecode: "style,script,iframe",
- taskList: true,
- tex: true,
- flowChart: true,
- sequenceDiagram: true
- });
- $("#" + id + " p:first").addClass("ReactMarkdown");
- }, 200)
+ // setTimeout(() => {
+ // var shixunDescr = window.editormd.markdownToHTML(id, {
+ // htmlDecode: "style,script,iframe",
+ // taskList: true,
+ // tex: true,
+ // flowChart: true,
+ // sequenceDiagram: true
+ // });
+ // $("#" + id + " p:first").addClass("ReactMarkdown");
+ // }, 200)
}
// 关卡的上移下移操作
@@ -404,9 +405,9 @@ class Challenges extends Component {
render() {
let { ChallengesDataList, startbtns, sumidtype ,startshixunCombattype,shixunsreplace,shixunsmessage,hidestartshixunsreplacevalue,operationstrue,AccountProfiletype} = this.state;
let { loadingContent } = this.props;
- if (ChallengesDataList != undefined) {
- this.updatamakedown("ReactMarkdown")
- }
+ // if (ChallengesDataList != undefined) {
+ // this.updatamakedown("ReactMarkdown")
+ // }
let id = this.props.match.params.shixunId;
const antIcon =
暂时还没有相关数据哦!
- : - } - } + : ChallengesDataList === undefined ? "" :ChallengesDataList&&ChallengesDataList.description===null?"": +