Skip to content

Commit 1ffe869

Browse files
committed
Add beforeRouteUpdate merge strategy
Fix #1519
1 parent 6f93fc9 commit 1ffe869

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/install.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,5 @@ export function install (Vue) {
4848

4949
const strats = Vue.config.optionMergeStrategies
5050
// use the same hook merging strategy for route hooks
51-
strats.beforeRouteEnter = strats.beforeRouteLeave = strats.created
51+
strats.beforeRouteEnter = strats.beforeRouteLeave = strats.beforeRouteUpdate = strats.created
5252
}

0 commit comments

Comments
 (0)