Skip to content

Commit

Permalink
Add beforeRouteUpdate merge strategy (#1521)
Browse files Browse the repository at this point in the history
Fix #1519
  • Loading branch information
posva authored and yyx990803 committed Jun 29, 2017
1 parent d539788 commit 9fde13f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,5 @@ export function install (Vue) {

const strats = Vue.config.optionMergeStrategies
// use the same hook merging strategy for route hooks
strats.beforeRouteEnter = strats.beforeRouteLeave = strats.created
strats.beforeRouteEnter = strats.beforeRouteLeave = strats.beforeRouteUpdate = strats.created
}

0 comments on commit 9fde13f

Please sign in to comment.