docs: remove unnecessary JSON.stringify() (#18590)

This commit is contained in:
华晨 2023-01-28 23:14:46 +08:00 committed by GitHub
parent 64b835c707
commit 6c4cf5cdcb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,7 +85,7 @@ In brief, `useFetch` receives a URL and gets that data, whereas `useAsyncData` m
let counter = 0
export default defineEventHandler(() => {
counter++
return JSON.stringify(counter)
return counter
})
```