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

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 ''
}

View File

@@ -31,21 +31,21 @@ const routes: RouteRecordRaw[] = [
meta: { requiresAuth: false }
},
{
path: 'provider',
name: 'GuideProvider',
component: () => importWithRetry(() => import('@/views/public/guide/ProviderGuide.vue')),
path: 'architecture',
name: 'GuideArchitecture',
component: () => importWithRetry(() => import('@/views/public/guide/ArchitectureGuide.vue')),
meta: { requiresAuth: false }
},
{
path: 'model',
name: 'GuideModel',
component: () => importWithRetry(() => import('@/views/public/guide/ModelGuide.vue')),
path: 'concepts',
name: 'GuideConcepts',
component: () => importWithRetry(() => import('@/views/public/guide/ConceptsGuide.vue')),
meta: { requiresAuth: false }
},
{
path: 'user-key',
name: 'GuideUserKey',
component: () => importWithRetry(() => import('@/views/public/guide/UserKeyGuide.vue')),
path: 'strategy',
name: 'GuideStrategy',
component: () => importWithRetry(() => import('@/views/public/guide/StrategyGuide.vue')),
meta: { requiresAuth: false }
},
{