From 6bf8061f0fc9614ebec396f27822f0c347826eb2 Mon Sep 17 00:00:00 2001 From: liuweiqing Date: Fri, 15 Mar 2024 15:47:56 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E6=9C=AA=E6=89=BE?= =?UTF-8?q?=E5=88=B0=E6=96=87=E7=8C=AE=E7=9A=84=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/GetArxiv.tsx | 2 +- components/GetPubMed .tsx | 2 +- components/GetSemantic.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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