refactor(guide): 重构教程文档页面结构和布局

- 将 ProviderGuide/ModelGuide/UserKeyGuide 替换为 ArchitectureGuide/ConceptsGuide/StrategyGuide
- GuideLayout 迁移至 AppShell 组件,统一侧边栏导航和移动端菜单
- Overview 页面重写内容结构
- 更新路由配置和导航配置项
- homeGuard 添加 /guide 路径支持
This commit is contained in:
fawney19
2026-02-18 18:17:14 +08:00
parent 63870931af
commit 18b1dea8cf
11 changed files with 4173 additions and 1700 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ export function resolveHomeRedirect(
// 已登录用户如果是从dashboard返回首页、刷新首页、或者有returnTo参数,允许访问首页
const isFromApp =
from.path.startsWith('/dashboard') || from.path.startsWith('/admin') || from.path === '/'
from.path.startsWith('/dashboard') || from.path.startsWith('/admin') || from.path.startsWith('/guide') || from.path === '/'
if (to.query.returnTo || isFromApp) {
return ''
}