Skip to content

Commit

Permalink
Merge pull request umijs#641 from solarhell/patch-1
Browse files Browse the repository at this point in the history
Fix doc
  • Loading branch information
sorrycc authored Jun 20, 2018
2 parents 8030218 + a6af9e2 commit 2a34948
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 2a34948

Please sign in to comment.