docs: use `toUTCString` in `useAsyncData` example (#5798)

This commit is contained in:
Cupid Valentine 2022-07-11 16:45:01 +08:00 committed by GitHub
parent ac4e09b36b
commit 57130b4fbc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

@ -91,7 +91,7 @@ Defaults can be overwritten, see [overwriting defaults](#overwriting-defaults) i
You can overwrite `<NuxtLink>` defaults by creating your own link component using `defineNuxtLink`.
```js [components/MyNuxtLink.js]
```js [components/MyNuxtLink.ts]
export default defineNuxtLink({
componentName: 'MyNuxtLink',
/* see signature below for more */
@ -100,7 +100,7 @@ export default defineNuxtLink({
You can then use `<MyNuxtLink />` component as usual with your new defaults.
:button-link[Open on StackBlitz]{href="https://stackblitz.com/github/nuxt/framework/tree/main/examples/routing/nuxt-link?terminal=dev&file=/components/MyNuxtLink.js" blank}
:button-link[Open on StackBlitz]{href="https://stackblitz.com/github/nuxt/framework/tree/main/examples/routing/nuxt-link?terminal=dev&file=/components/MyNuxtLink.ts" blank}
### `defineNuxtLink` signature

View File

@ -7,7 +7,7 @@ template: Example
This example shows different ways to use `<NuxtLink>`.
::alert{type=info icon=💡}
`components/myNuxtLink.js` defines a custom `<NuxtLink>`.
`components/myNuxtLink.ts` defines a custom `<NuxtLink>`.
::
::ReadMore{link="/api/components/nuxt-link"}

View File

@ -1 +1 @@
export default req => `Hello world (${req.url.substr(1)}) (Generated at ${new Date().toGMTString()})`
export default req => `Hello world (${req.url.substr(1)}) (Generated at ${new Date().toUTCString()})`