Skip to content

Commit 71674bc

Browse files
authored
fix: support vue-router 3.0.1 and below
1 parent e171f7a commit 71674bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default (Vue, { componentName = 'RouterLink' } = {}) => {
1414
})
1515
})
1616

17-
const RouterLink = Vue.component('RouterLink')
17+
const RouterLink = Vue.component('RouterLink') || Vue.component('router-link')
1818

1919
if (process.env.NODE_ENV === 'development' && !RouterLink) {
2020
console.error(

0 commit comments

Comments
 (0)