From a5cfee4338ac466944d31cdb0861505cd233cd5e Mon Sep 17 00:00:00 2001 From: zyh Date: Fri, 11 Apr 2025 16:01:37 +0000 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8=E7=9F=A5=E8=AF=86=E5=BA=93=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E9=A1=B5=E9=9D=A2=E4=B8=AD=E6=B7=BB=E5=8A=A0=E8=B0=83?= =?UTF-8?q?=E8=AF=95=E4=BF=A1=E6=81=AF=E4=BB=A5=E4=BE=BF=E4=BA=8E=E5=90=8E?= =?UTF-8?q?=E7=BB=AD=E6=8E=92=E6=9F=A5=EF=BC=8C=E5=90=8C=E6=97=B6=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E8=8E=B7=E5=8F=96=E7=9F=A5=E8=AF=86=E5=BA=93=E6=96=87?= =?UTF-8?q?=E7=AB=A0=E8=AF=A6=E6=83=85=E7=9A=84API=E5=93=8D=E5=BA=94?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F=EF=BC=8C=E6=8F=90=E5=8D=87=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E4=BD=93=E9=AA=8C=E5=92=8C=E4=BB=A3=E7=A0=81=E5=8F=AF=E7=BB=B4?= =?UTF-8?q?=E6=8A=A4=E6=80=A7=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/admin/pages_know_info.tsx | 2 +- server/routes_sys.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/admin/pages_know_info.tsx b/client/admin/pages_know_info.tsx index fdaaaf9..ed27972 100644 --- a/client/admin/pages_know_info.tsx +++ b/client/admin/pages_know_info.tsx @@ -126,7 +126,7 @@ export const KnowInfoPage = () => { // 处理编辑 const handleEdit = async (id: number) => { const article = await fetchArticle(id); - + console.log('article', article) if (article) { setFormMode('edit'); setEditingId(id); diff --git a/server/routes_sys.ts b/server/routes_sys.ts index e30b4e6..0670ed5 100644 --- a/server/routes_sys.ts +++ b/server/routes_sys.ts @@ -103,7 +103,7 @@ export function createKnowInfoRoutes(withAuth: WithAuth) { return c.json({ error: "文章不存在" }, 404); } - return c.json(article); + return c.json({message: '获取知识库文章详情成功', data: article}); } catch (error) { log.api("获取知识库文章详情失败:", error); return c.json({ error: "获取知识库文章详情失败" }, 500);