doc: fix useAsyncData documentation error (#3879)

This commit is contained in:
Alex Liu 2022-03-24 20:13:41 +08:00 committed by GitHub
parent e19c638b3f
commit 993bc7c8a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -18,11 +18,14 @@ const {
pending: Ref<boolean>,
refresh: (force?: boolean) => Promise<void>,
error?: any
watch: WatchSource[]
} = useAsyncData(
key: string,
handler: (ctx?: NuxtApp) => Promise<Object>,
options?: { lazy: boolean, server: boolean }
options?: {
lazy: boolean,
server: boolean,
watch: WatchSource[]
}
)
```