diff --git a/src/forge/comments/comments.js b/src/forge/comments/comments.js index c87b69f2..2e763e41 100644 --- a/src/forge/comments/comments.js +++ b/src/forge/comments/comments.js @@ -105,11 +105,16 @@ class comments extends Component { }); }; add_reply = (id) => { - this.setState({ - is_reply: true, - success_journal: false, - reply_id: id, - }); + if (this.props.checkIfLogin() === false) { + this.props.showLoginDialog(); + return; + } else { + this.setState({ + is_reply: true, + success_journal: false, + reply_id: id, + }); + } }; cancel_reply = () => { @@ -301,7 +306,7 @@ class comments extends Component { const new_comment = (is_reply, item_id) => { return (
- {current_user && current_user.login ? ( + {(current_user && current_user.login) ? (
) : ( -
- this.loginModal()}> +
+ + + + {/* this.loginModal()}> 登录 - 并参与到对话中 + 并参与到对话中 */}
)}