diff --git a/components/GetArxiv.tsx b/components/GetArxiv.tsx index 720575f..6755d27 100644 --- a/components/GetArxiv.tsx +++ b/components/GetArxiv.tsx @@ -57,7 +57,7 @@ async function getArxivPapers( return result; } catch (error: any) { throw new Error( - `Error fetching data from Arxiv API:${JSON.stringify( + `Arxiv失败(请使用英文并缩短关键词):${JSON.stringify( error.response, null, 2 diff --git a/components/GetPubMed .tsx b/components/GetPubMed .tsx index 9d76025..3f19f27 100644 --- a/components/GetPubMed .tsx +++ b/components/GetPubMed .tsx @@ -37,7 +37,7 @@ async function getPubMedPapers( // 这里只返回了ID列表,你可能需要根据实际需要进行调整 return idList; } catch (error) { - console.error("Error fetching data from PubMed API:", error); + console.error(" PubMed API失败(请使用英文并缩短关键词):", error); return null; // 或根据需要处理错误 } } diff --git a/components/GetSemantic.tsx b/components/GetSemantic.tsx index 5472337..7d6f6bd 100644 --- a/components/GetSemantic.tsx +++ b/components/GetSemantic.tsx @@ -52,7 +52,7 @@ async function getSemanticPapers( } catch (error: any) { // console.error("Error fetching data from Semantic Scholar API:", error); throw new Error( - `Error fetching data from Semantic Scholar API:${JSON.stringify( + `Semantic Scholar fail(请使用英文并缩短关键词):${JSON.stringify( error.response, null, 2