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

@@ -108,12 +108,6 @@ const AsiderAndHeaderLayout = () => {
selectedKeys={[activeItem]}
defaultOpenKeys={["synthesis"]}
onClick={({ key }) => {
// 查找菜单项,检查是否有外部链接
const menuItem = menuItems.find((item) => item.id === key);
if (menuItem?.externalLink) {
window.open(menuItem.externalLink, "_blank");
return;
}
setActiveItem(key);
navigate(`/data/${key}`);
}}

View File

@@ -49,7 +49,6 @@ export const menuItems = [
icon: Sparkles,
description: "智能内容生成与创作",
color: "bg-purple-500",
externalLink: "https://www.baidu.com",
},
// {
// id: "synthesis",