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

View File

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