mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 05:35:13 +00:00
chore: lint docs
This commit is contained in:
parent
e3af5684f7
commit
be8036098f
@ -88,6 +88,7 @@ const { data, pending, error, refresh } = await useFetch('https://api.nuxtjs.dev
|
||||
pick: ['title']
|
||||
})
|
||||
```
|
||||
|
||||
Adding Query Search Params:
|
||||
|
||||
Using the `query` option, you can add search parameters to your query. This option is extended from [unjs/ohmyfetch](https://github.com/unjs/ohmyfetch) and is using [ufo](https://github.com/unjs/ufo) to create the URL. Objects are automatically stringified.
|
||||
@ -98,6 +99,7 @@ const { data, pending, error, refresh } = await useFetch('https://api.nuxtjs.dev
|
||||
query: { param1, param2: 'value2' }
|
||||
})
|
||||
```
|
||||
|
||||
Results in `https://api.nuxtjs.dev/mountains?param1=value1¶m2=value2`
|
||||
|
||||
Using [interceptors](https://github.com/unjs/ohmyfetch#%EF%B8%8F-interceptors):
|
||||
|
Loading…
Reference in New Issue
Block a user