fix(frontend): stop chart svg height warnings and idle consult status 404s
This commit is contained in:
@@ -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 });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user