mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-18 09:25:54 +00:00
docs: update examples to use function declarations for clarity (#30588)
This commit is contained in:
parent
2448e86f84
commit
0a2b01fbc4
@ -77,7 +77,7 @@ let previousTodos = []
|
||||
// Access to the cached value of useAsyncData in todos.vue
|
||||
const { data: todos } = useNuxtData('todos')
|
||||
|
||||
const addTodo = async () => {
|
||||
async function addTodo () {
|
||||
return $fetch('/api/addTodo', {
|
||||
method: 'post',
|
||||
body: {
|
||||
|
Loading…
Reference in New Issue
Block a user