优化漫画展馆的搜索速度,修复无法重新搜索

This commit is contained in:
mtvpls
2026-04-25 21:38:15 +08:00
parent 436b7164a0
commit d8d7e57eab
4 changed files with 112 additions and 46 deletions
+2 -2
View File
@@ -20,8 +20,8 @@ export async function GET(request: NextRequest) {
return NextResponse.json({ results: [] });
}
const results = await suwayomiClient.searchManga(q, sourceId, page);
return NextResponse.json({ results });
const result = await suwayomiClient.searchManga(q, sourceId, page);
return NextResponse.json(result);
} catch (error) {
return NextResponse.json({ error: (error as Error).message }, { status: 500 });
}