|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
import React, {Component} from "react";
|
|
|
|
|
import { WordsBtn,on, off, trigger,markdownToHTML,getImageUrl} from 'educoder';
|
|
|
|
|
import { WordsBtn,on, off, trigger,MarkdownToHtml,getImageUrl} from 'educoder';
|
|
|
|
|
import {
|
|
|
|
|
Button,
|
|
|
|
|
Checkbox,
|
|
|
|
@ -30,7 +30,7 @@ class Generaljobanswer extends Component {
|
|
|
|
|
console.log("componentDidMount");
|
|
|
|
|
// let query = this.props.location.pathname;
|
|
|
|
|
// const type = query.split('/');
|
|
|
|
|
// this.setState({
|
|
|
|
|
// this.setState({n
|
|
|
|
|
// shixuntypes:type[3]
|
|
|
|
|
// })
|
|
|
|
|
// this.props.triggerRef(this);
|
|
|
|
@ -70,7 +70,9 @@ class Generaljobanswer extends Component {
|
|
|
|
|
datas.reference_answer===""?
|
|
|
|
|
<NoneData></NoneData>
|
|
|
|
|
:
|
|
|
|
|
<div id="MakedownHTML"className="markdown-body yslquesHeigth yslquesmarkdowntext" dangerouslySetInnerHTML={{__html: markdownToHTML(datas.reference_answer).replace(/▁/g, "▁▁▁")}}/>
|
|
|
|
|
<MarkdownToHtml content={datas.reference_answer} selector="work_content" className="mb10"></MarkdownToHtml>
|
|
|
|
|
|
|
|
|
|
// <div id="MakedownHTML"className="markdown-body yslquesHeigth yslquesmarkdowntext" dangerouslySetInnerHTML={{__html: markdownToHTML(datas.reference_answer).replace(/▁/g, "▁▁▁")}}/>
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
{/*<div id="MakedownHTML"className="markdown-body yslquesHeigth yslquesmarkdowntext" dangerouslySetInnerHTML={{__html: markdownToHTML(datas&&(datas.reference_answer===null?"无":datas.reference_answer==="null"?"无":datas.reference_answer)).replace(/▁/g, "▁▁▁")}}/>*/}
|
|
|
|
|