From dda18468ece2fb1eae5803c27ba3c0fb5d6a1a94 Mon Sep 17 00:00:00 2001 From: harry Date: Mon, 23 Mar 2020 14:18:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=AE=BA=E5=9D=9B=E8=BF=9B?= =?UTF-8?q?=E4=B8=8D=E5=8E=BB=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/react/src/modules/forums/MemoDetail.js | 39 +++++-------------- 1 file changed, 9 insertions(+), 30 deletions(-) diff --git a/public/react/src/modules/forums/MemoDetail.js b/public/react/src/modules/forums/MemoDetail.js index 943f2c01c..ae20e3270 100644 --- a/public/react/src/modules/forums/MemoDetail.js +++ b/public/react/src/modules/forums/MemoDetail.js @@ -1,13 +1,17 @@ import React, { Component } from 'react'; + import { Link } from "react-router-dom"; + import axios from 'axios' import moment from 'moment' import Comments from '../comment/Comments' import update from 'immutability-helper' import RewardDialog from '../common/RewardDialog'; import ImageLayerOfCommentHOC from '../page/layers/ImageLayerOfCommentHOC' + import MemoDetailKEEditor from './MemoDetailKEEditor' import MemoDetailMDEditor from './MemoDetailMDEditor' + import { CBreadcrumb, htmlEncode } from 'educoder' import { Tooltip } from 'antd' @@ -652,7 +656,7 @@ class MemoDetail extends Component { // --------------------------------------------------------------------------------------------帖子獎勵 END showCommentInput = () => { - debugger + if (window.__useKindEditor === true) { this.refs.editor.showEditor(); } else { @@ -667,15 +671,9 @@ class MemoDetail extends Component { if (!memo || this.state.memoLoading) { return
} - // --------------------------------------------------------------------------------------------帖子獎勵 END - showCommentInput = () => { - - - if (window.__useKindEditor === true) { - this.refs.editor.showEditor(); - } else { - this.refs.editor.showEditor(); - } + let _current_user = {} + if (current_user) { + _current_user = current_user } (_current_user.user_url = `/users/${_current_user.login}`); memo.isDetailPage = true; @@ -839,30 +837,11 @@ class MemoDetail extends Component { } - - {hasMoreComments ? -
- 查看更多评论 -
写评论
-
- : -
-
写评论
-
} - - + ); } }