fix(frontend): stop chart svg height warnings and idle consult status 404s

This commit is contained in:
jesse-ux
2026-09-25 01:43:59 +08:00
parent 514951d708
commit 90b027f0fd
11 changed files with 117 additions and 7 deletions
+5 -1
View File
@@ -67,7 +67,11 @@ export async function GET(request: Request) {
if (error) {
return NextResponse.json({ error: "暂时无法读取咨询状态" }, { status: 503 });
}
if (!data || typeof data.session_id !== "string") {
if (activeLookup) {
if (!data || typeof data.session_id !== "string") {
return new NextResponse(null, { status: 204 });
}
} else if (!data || typeof data.session_id !== "string") {
return NextResponse.json({ error: "咨询请求不存在" }, { status: 404 });
}