Skip to content

Commit 6a25023

Browse files
committed
Merge pull request #80 from kazupon/change/auto_install
plugin auto installation with Vue.use()
2 parents 1b7ed17 + 69789f3 commit 6a25023

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Router.install = function (Vue) {
2424
// auto install
2525
/* istanbul ignore if */
2626
if (typeof window !== 'undefined' && window.Vue) {
27-
Router.install(window.Vue)
27+
window.Vue.use(Router)
2828
}
2929

3030
export default Router

0 commit comments

Comments
 (0)