We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89347b6 commit 1f7411eCopy full SHA for 1f7411e
index.js
@@ -32,6 +32,7 @@ exports.sync = function (store, router) {
32
store.dispatch('router/ROUTE_CHANGED', {
33
path: to.path,
34
query: to.query,
35
+ name: to.name,
36
params: to.params
37
})
38
@@ -43,6 +44,7 @@ function patchStore (store) {
43
44
store._dispatching = true
45
set(store.state, 'route', {
46
path: '',
47
+ name: '',
48
query: null,
49
params: null
50
@@ -54,6 +56,7 @@ function patchStore (store) {
54
56
mutations: {
55
57
'router/ROUTE_CHANGED': function (state, to) {
58
state.path = to.path
59
+ state.name = to.name
60
state.query = to.query
61
state.params = to.params
62
}
0 commit comments