diff --git a/src/common/course/ActionBtn.js b/src/common/course/ActionBtn.js
index c2e0ea01..c8596656 100644
--- a/src/common/course/ActionBtn.js
+++ b/src/common/course/ActionBtn.js
@@ -6,22 +6,18 @@ const map = {
'colorBlue': 'colorBlue', // 蓝字白底
}
class ActionBtn extends Component {
- constructor(props) {
- super(props);
- }
-
render() {
let { to, children, style, className, ...others } = this.props
return (
]*>/g export default ({ value = '', is_md = true, className, style = {} }) => { let html = is_md ? exportMdtoHtml(value) : value - html = html.replace(/▁/g, "▁▁▁").replace('[TOC]
', '') + console.log(html, '----========') + html = html.replace(/▁/g, "▁▁▁") const el = useRef() useEffect(() => { if (el.current && html) { - if (preRegex.test(html)) { + if (html.match(preRegex)) { window.PR.prettyPrint() } } diff --git a/src/modules/moop_cases/CaseDetail.js b/src/modules/moop_cases/CaseDetail.js index badecad1..7ec4ba49 100644 --- a/src/modules/moop_cases/CaseDetail.js +++ b/src/modules/moop_cases/CaseDetail.js @@ -112,7 +112,7 @@ class CaseDetail extends Component { } { - operation && operation.can_editable ?编辑 : "" + operation && operation.can_editable ?编辑 : "" }