Skip to content

Commit

Permalink
Update router callback
Browse files Browse the repository at this point in the history
  • Loading branch information
emiliorizzo committed Feb 28, 2020
1 parent 5501f9d commit 99f5ba2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ router.beforeEach((to, from, next) => {
router.afterEach((to, from) => {
let r = Object.assign({}, to)
r.hash = ''
router.replace(r)
router.replace(r).catch(() => { })
})

/**
Expand Down
2 changes: 1 addition & 1 deletion src/store/modules/routes/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const updateRouterQuery = ({ state, getters, dispatch }, { query, hash, k

export const routerPush = ({ state, commit, getters }, { query, hash, key }) => {
query = getters.parseQuery(query, key)
router.push({ query, hash })
router.push({ query, hash }, () => { })
}

export const updateQuery = (query, update) => {
Expand Down

0 comments on commit 99f5ba2

Please sign in to comment.