Skip to content

Commit 562ca2b

Browse files
committed
include route hash/name
1 parent f159344 commit 562ca2b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/backend/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,8 @@ function processRouteContext (instance) {
413413
const { path, query, params } = route
414414
const value = { path, query, params }
415415
if (route.fullPath) value.fullPath = route.fullPath
416+
if (route.hash) value.hash = route.hash
417+
if (route.name) value.name = route.name
416418
return [{
417419
key: '$route',
418420
value

0 commit comments

Comments
 (0)