Skip to content

Commit 7e964e2

Browse files
committed
enable route object mixins (1.0 only)
1 parent 19b53ed commit 7e964e2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,12 @@ Router.install = function (Vue) {
119119
Link(Vue)
120120
Override(Vue)
121121
util.Vue = Vue
122+
// 1.0 only: enable route mixins
123+
var strats = Vue.config.optionMergeStrategies
124+
if (strats) {
125+
// use the same merge strategy as methods (object hash)
126+
strats.route = strats.methods
127+
}
122128
Router.installed = true
123129
}
124130

0 commit comments

Comments
 (0)