mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 05:35:13 +00:00
chore: init nuxtLink
This commit is contained in:
parent
09c638c8b7
commit
5e735005a5
@ -1,4 +1,5 @@
|
|||||||
import { defineUntypedSchema } from 'untyped'
|
import { defineUntypedSchema } from 'untyped'
|
||||||
|
import {defu} from "defu";
|
||||||
|
|
||||||
export default defineUntypedSchema({
|
export default defineUntypedSchema({
|
||||||
/**
|
/**
|
||||||
@ -298,6 +299,7 @@ export default defineUntypedSchema({
|
|||||||
/** @type {typeof import('#app/components/nuxt-link')['NuxtLinkOptions']} */
|
/** @type {typeof import('#app/components/nuxt-link')['NuxtLinkOptions']} */
|
||||||
nuxtLink: {
|
nuxtLink: {
|
||||||
$resolve: async (val, get) => {
|
$resolve: async (val, get) => {
|
||||||
|
val = val || {}
|
||||||
val.componentName = val.componentName || 'NuxtLink'
|
val.componentName = val.componentName || 'NuxtLink'
|
||||||
const { trailingSlash } = await get('app')
|
const { trailingSlash } = await get('app')
|
||||||
if (trailingSlash && !val.trailingSlash)
|
if (trailingSlash && !val.trailingSlash)
|
||||||
|
Loading…
Reference in New Issue
Block a user