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);