Skip to content

Commit

Permalink
include route hash/name
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jul 24, 2016
1 parent f159344 commit 562ca2b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/backend/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,8 @@ function processRouteContext (instance) {
const { path, query, params } = route
const value = { path, query, params }
if (route.fullPath) value.fullPath = route.fullPath
if (route.hash) value.hash = route.hash
if (route.name) value.name = route.name
return [{
key: '$route',
value
Expand Down

0 comments on commit 562ca2b

Please sign in to comment.