fix(frontend): fix loader try-catch syntax error
- Add missing closing brace for unified API error check - Properly wrap catch block around error handling Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -268,6 +268,7 @@ export async function loader({ request }: LoaderFunctionArgs) {
|
||||
scoredSummary: null
|
||||
});
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('[Reviews Loader] 获取评查数据失败:', error);
|
||||
console.error('[Reviews Loader] 错误堆栈:', error instanceof Error ? error.stack : '无堆栈信息');
|
||||
return Response.json({ result: false, message: `获取评查数据失败: ${error instanceof Error ? error.message : '未知错误'}` });
|
||||
|
||||
Reference in New Issue
Block a user