fix(ui): stabilize authenticated page requests

This commit is contained in:
jxxghp
2026-08-13 07:20:49 +08:00
parent 0ea12f75f7
commit 2b0325e02b
13 changed files with 75 additions and 27 deletions

View File

@@ -21,7 +21,7 @@ export function mediaExistsHandler(
) {
return http.get(mediaApiUrls.exists, async ({ request }) => {
await onRequest(new URL(request.url))
return HttpResponse.json(response as JsonBodyType, { status })
return HttpResponse.json({ message: '', ...response } as JsonBodyType, { status })
})
}