From 8d6b4a426584711c05ff03ad9a91f7532c079f29 Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Tue, 20 Jan 2026 10:34:13 +0800 Subject: [PATCH] =?UTF-8?q?refactor(home):=20=E7=A7=BB=E9=99=A4=E5=A4=96?= =?UTF-8?q?=E9=83=A8=E9=93=BE=E6=8E=A5=E8=B7=B3=E8=BD=AC=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E5=B9=B6=E4=BC=98=E5=8C=96=E8=B7=AF=E7=94=B1=E5=AF=BC=E8=88=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除百度链接跳转功能,改为内部路由导航到内容生成页面 - 删除无用的 isChecking 状态和 handleChatClick 处理函数 - 移除菜单项中的 externalLink 属性配置 - 简化侧边栏点击事件处理逻辑,移除外部链接检查代码 - 添加内容生成页面的路由配置 --- .../ContentGenerationPage.tsx | 23 ++++++++++++++++++ frontend/src/pages/Home/Home.tsx | 24 ++++--------------- frontend/src/pages/Layout/Sidebar.tsx | 6 ----- frontend/src/pages/Layout/menu.tsx | 1 - frontend/src/routes/routes.ts | 5 ++++ 5 files changed, 32 insertions(+), 27 deletions(-) create mode 100644 frontend/src/pages/ContentGeneration/ContentGenerationPage.tsx diff --git a/frontend/src/pages/ContentGeneration/ContentGenerationPage.tsx b/frontend/src/pages/ContentGeneration/ContentGenerationPage.tsx new file mode 100644 index 0000000..e9f8076 --- /dev/null +++ b/frontend/src/pages/ContentGeneration/ContentGenerationPage.tsx @@ -0,0 +1,23 @@ +/** + * 内容生成页面 + * 通过 iframe 加载外部页面 + */ +export default function ContentGenerationPage() { + const iframeUrl = "https://www.baidu.com"; + + return ( +
+
+

内容生成

+
+
+