mirror of
https://github.com/fawney19/Aether.git
synced 2026-09-02 09:20:22 +08:00
refactor(guide): 重构教程文档页面结构和布局
- 将 ProviderGuide/ModelGuide/UserKeyGuide 替换为 ArchitectureGuide/ConceptsGuide/StrategyGuide - GuideLayout 迁移至 AppShell 组件,统一侧边栏导航和移动端菜单 - Overview 页面重写内容结构 - 更新路由配置和导航配置项 - homeGuard 添加 /guide 路径支持
This commit is contained in:
@@ -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 ''
|
||||
}
|
||||
|
||||
@@ -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 }
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user