Revaycolizer
Revaycolizer
Explore posts from servers
NNuxt
Created by Revaycolizer on 11/2/2024 in #❓・help
My UI won't update even though I successfully receive response
await refreshNuxtData() works
11 replies
NNuxt
Created by Revaycolizer on 11/2/2024 in #❓・help
My UI won't update even though I successfully receive response
@kapa.ai
11 replies
NNuxt
Created by Revaycolizer on 11/2/2024 in #❓・help
My UI won't update even though I successfully receive response
But below is my API seems it cannot apply to the code you wrote
export default defineEventHandler(async (event) => {
const body = await readBody(event)

const { test, name } = body
if (!test||!name){
return []
}
setResponseStatus(event, 202)

const data =[
{
id:1,
test: test,
name: name
}
]
return data
})
export default defineEventHandler(async (event) => {
const body = await readBody(event)

const { test, name } = body
if (!test||!name){
return []
}
setResponseStatus(event, 202)

const data =[
{
id:1,
test: test,
name: name
}
]
return data
})
11 replies