mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 15:15:19 +00:00
fix: RouterLink import
This commit is contained in:
parent
fd0a437adc
commit
00e13c3e41
@ -1,11 +1,11 @@
|
|||||||
// import { h, defineComponent } from 'vue'
|
// import { h, defineComponent } from 'vue'
|
||||||
import { Link } from 'vue-router'
|
import { RouterLink } from 'vue-router'
|
||||||
|
|
||||||
// const NuxtLink = defineComponent({
|
// const NuxtLink = defineComponent({
|
||||||
// extends: Link
|
// extends: Link
|
||||||
// })
|
// })
|
||||||
|
|
||||||
export default function components ({ app }) {
|
export default function components ({ app }) {
|
||||||
app.component('NuxtLink', Link)
|
app.component('NuxtLink', RouterLink)
|
||||||
app.component('NLink', Link) // TODO: deprecate
|
app.component('NLink', RouterLink) // TODO: deprecate
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user