2025-03-12 18:41:20 +08:00
|
|
|
import DefaultLayout from '@/layouts/DefaultLayout/index.vue';
|
|
|
|
|
|
|
|
|
|
export default [
|
|
|
|
|
{
|
|
|
|
|
path: '/:namespace+',
|
|
|
|
|
component: () => import('@/views/Homepage/index.vue'),
|
|
|
|
|
name: 'homepage',
|
|
|
|
|
meta: {
|
|
|
|
|
hasMobile: true, // 是否展示移动端
|
|
|
|
|
pageType: 'userOrOrg' // 用户或组织主页
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/',
|
|
|
|
|
component: DefaultLayout,
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
path: '',
|
|
|
|
|
name: 'home',
|
2025-03-13 19:18:53 +08:00
|
|
|
component: () => import('@/views/Jyh/Home/index.vue'),
|
2025-03-12 18:41:20 +08:00
|
|
|
meta: {
|
|
|
|
|
micorApp: ['micoro-app-homeweb-app'],
|
|
|
|
|
hasMobile: true,
|
|
|
|
|
hiddenFooter: true,
|
|
|
|
|
reportTitle: '首页',
|
|
|
|
|
className: 'w-full min-w-full',
|
2025-03-13 19:45:34 +08:00
|
|
|
headerClassName: '',
|
|
|
|
|
asideMenu: 'drawer' // 左侧菜单抽屉模式
|
2025-03-12 18:41:20 +08:00
|
|
|
}
|
|
|
|
|
},
|
2025-03-13 16:09:33 +08:00
|
|
|
{
|
|
|
|
|
path: 'search/license',
|
|
|
|
|
name: 'SearchLicense',
|
|
|
|
|
component: () => import('@/views/Jyh/Search/license.vue'),
|
|
|
|
|
meta: {
|
|
|
|
|
title: '高级搜索-License',
|
|
|
|
|
reportTitle: '搜索License',
|
|
|
|
|
className: 'w-full min-w-full',
|
|
|
|
|
hiddenFooter: true,
|
|
|
|
|
hasMobile: true,
|
|
|
|
|
asideMenu: 'drawer' // 左侧菜单抽屉模式
|
|
|
|
|
}
|
|
|
|
|
},
|
2025-03-12 18:41:20 +08:00
|
|
|
{
|
2025-03-13 18:41:30 +08:00
|
|
|
path: 'repoList',
|
2025-03-13 16:09:33 +08:00
|
|
|
name: 'Search',
|
2025-03-12 18:41:20 +08:00
|
|
|
component: () => import('@/views/Jyh/Search/index.vue'),
|
|
|
|
|
meta: {
|
|
|
|
|
title: '高级搜索',
|
|
|
|
|
reportTitle: '搜索',
|
|
|
|
|
className: 'w-full min-w-full',
|
|
|
|
|
hiddenFooter: true,
|
|
|
|
|
hasMobile: true,
|
|
|
|
|
asideMenu: 'drawer' // 左侧菜单抽屉模式
|
|
|
|
|
}
|
|
|
|
|
},
|
2025-03-13 18:41:30 +08:00
|
|
|
{
|
|
|
|
|
path: 'repoDetail/basicInfo/:versionId',
|
|
|
|
|
name: 'VersionDetail',
|
|
|
|
|
component: () => import('@/views/Jyh/Version/Detail/index.vue'),
|
|
|
|
|
meta: {
|
|
|
|
|
title: '软件版本详情',
|
|
|
|
|
reportTitle: '软件版本详情页',
|
|
|
|
|
className: 'w-full min-w-full',
|
|
|
|
|
hiddenFooter: true,
|
|
|
|
|
hasMobile: true,
|
|
|
|
|
asideMenu: 'drawer' // 左侧菜单抽屉模式
|
|
|
|
|
}
|
|
|
|
|
},
|
2025-03-14 14:47:29 +08:00
|
|
|
{
|
|
|
|
|
path: 'personalCenter',
|
|
|
|
|
name: 'PersonalCenter',
|
|
|
|
|
component: () => import('@/views/Jyh/PersonalCenter/index.vue'),
|
|
|
|
|
meta: {
|
|
|
|
|
title: '个人中心',
|
|
|
|
|
reportTitle: '个人中心',
|
|
|
|
|
className: 'w-full min-w-full',
|
|
|
|
|
hiddenFooter: true,
|
|
|
|
|
hasMobile: true,
|
|
|
|
|
asideMenu: 'drawer' // 左侧菜单抽屉模式
|
|
|
|
|
}
|
|
|
|
|
},
|
2025-03-12 18:41:20 +08:00
|
|
|
{
|
|
|
|
|
path: 'explore',
|
|
|
|
|
name: 'explore',
|
|
|
|
|
component: () => import('@/views/micro-page/proxy-homeweb.vue'),
|
|
|
|
|
meta: {
|
|
|
|
|
micorApp: ['micoro-app-homeweb-app'],
|
|
|
|
|
title: '搜索开源',
|
|
|
|
|
className: 'w-full min-w-full',
|
|
|
|
|
hiddenFooter: true,
|
|
|
|
|
hasMobile: true
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
];
|