Skip to content

Commit

Permalink
给头部右侧添加登录链接
Browse files Browse the repository at this point in the history
  • Loading branch information
liljaewayne committed Mar 5, 2018
1 parent 0a28f33 commit 1da216b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/component/nav-top/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ class TopNav extends React.Component {
{
this.state.username
? <span>欢迎, {this.state.username}</span>
: <span>请登录</span>
: <span onClick={() =>
_commerce.doLogin()
}>请登录</span>
}

<i className="fa fa-caret-down"></i>
Expand Down

0 comments on commit 1da216b

Please sign in to comment.