Skip to content

Commit 9fde13f

Browse files
posvayyx990803
authored andcommitted
Add beforeRouteUpdate merge strategy (#1521)
Fix #1519
1 parent d539788 commit 9fde13f

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)