refactor(home): 移除外部链接跳转功能并优化路由导航

- 移除百度链接跳转功能,改为内部路由导航到内容生成页面
- 删除无用的 isChecking 状态和 handleChatClick 处理函数
- 移除菜单项中的 externalLink 属性配置
- 简化侧边栏点击事件处理逻辑,移除外部链接检查代码
- 添加内容生成页面的路由配置
This commit is contained in:
2026-01-20 10:34:13 +08:00
parent 7f100c08ca
commit 8d6b4a4265
5 changed files with 32 additions and 27 deletions

View File

@@ -0,0 +1,23 @@
/**
* 内容生成页面
* 通过 iframe 加载外部页面
*/
export default function ContentGenerationPage() {
const iframeUrl = "https://www.baidu.com";
return (
<div className="h-full w-full flex flex-col">
<div className="flex items-center justify-between mb-4">
<h1 className="text-xl font-bold"></h1>
</div>
<div className="flex-1 border rounded-lg overflow-hidden">
<iframe
src={iframeUrl}
className="w-full h-full border-0"
title="内容生成"
sandbox="allow-same-origin allow-scripts allow-popups allow-forms allow-downloads"
/>
</div>
</div>
);
}