Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 9fde13f

Browse files
posvayyx990803
authored andcommittedJun 29, 2017
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)
Please sign in to comment.