修改登录的弹框问题

This commit is contained in:
sylor_huang@126.com 2020-06-05 16:40:59 +08:00
parent cbe7775c81
commit acd7d42eb5
1 changed files with 8 additions and 1 deletions

View File

@ -252,6 +252,11 @@ class comments extends Component {
this.child = ref;
};
loginModal() {
this.props.showLoginDialog();
return;
}
commentCtx = (v) => {
return <RenderHtml className="break_word_comments" value={v} />;
};
@ -373,7 +378,9 @@ class comments extends Component {
</div>
) : (
<div className="loginDiv">
<Link to={`/login`}>登录</Link>
<a className="" onClick={() => this.loginModal()}>
登录
</a>
</div>
)}
</div>