chore: lint docs

This commit is contained in:
Pooya Parsa 2022-11-10 10:56:36 +01:00
parent e3af5684f7
commit be8036098f

View File

@ -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&param2=value2`
Using [interceptors](https://github.com/unjs/ohmyfetch#%EF%B8%8F-interceptors):