Skip to content

Commit

Permalink
Fix doc
Browse files Browse the repository at this point in the history
  • Loading branch information
solarhell authored Jun 19, 2018
1 parent 8030218 commit a6af9e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guide/router.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export default function(props) {

```js
export default function(props) {
if (props.location.path === '/login') {
if (props.location.pathname === '/login') {
return <SimpleLayout>{ props.children }</SimpleLayout>
}

Expand Down

0 comments on commit a6af9e2

Please sign in to comment.