From e59a350090d52a994377fd80bd987ee24f7e17ec Mon Sep 17 00:00:00 2001 From: xjccc <546534045@qq.com> Date: Wed, 19 Feb 2025 14:44:54 +0800 Subject: [PATCH] update: nuxt-link docs --- docs/3.api/1.components/4.nuxt-link.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/3.api/1.components/4.nuxt-link.md b/docs/3.api/1.components/4.nuxt-link.md index 76050946bd..35acea9297 100644 --- a/docs/3.api/1.components/4.nuxt-link.md +++ b/docs/3.api/1.components/4.nuxt-link.md @@ -271,7 +271,8 @@ export default defineNuxtConfig({ prefetchedClass: undefined, // can be any valid string class name trailingSlash: undefined // can be 'append' or 'remove' prefetch: true, - prefetchOn: { visibility: true } + prefetchOn: { visibility: true }, + whitelist: ['nuxtjs.org', '.nuxt.com'] } } } @@ -306,6 +307,7 @@ interface NuxtLinkOptions { visibility: boolean interaction: boolean }> + whitelist?: string[] } function defineNuxtLink(options: NuxtLinkOptions): Component {} ``` @@ -318,5 +320,6 @@ function defineNuxtLink(options: NuxtLinkOptions): Component {} - `prefetch`: Whether or not to prefetch links by default. - `prefetchOn`: Granular control of which prefetch strategies to apply by default. - `prefetchedClass`: A default class to apply to links that have been prefetched. +- `whitelist`: A white list of domain that should be not set noreferrer. :link-example{to="/docs/examples/routing/pages"}