搜索结果列表页面开发
This commit is contained in:
57
src/router/config/home.ts
Normal file
57
src/router/config/home.ts
Normal file
@@ -0,0 +1,57 @@
|
||||
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',
|
||||
component: () => import('@/views/micro-page/proxy-homeweb.vue'),
|
||||
meta: {
|
||||
micorApp: ['micoro-app-homeweb-app'],
|
||||
hasMobile: true,
|
||||
hiddenFooter: true,
|
||||
reportTitle: '首页',
|
||||
className: 'w-full min-w-full',
|
||||
headerClassName: ''
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'search',
|
||||
name: 'search',
|
||||
component: () => import('@/views/Jyh/Search/index.vue'),
|
||||
meta: {
|
||||
title: '高级搜索',
|
||||
reportTitle: '搜索',
|
||||
className: 'w-full min-w-full',
|
||||
hiddenFooter: true,
|
||||
hasMobile: true,
|
||||
asideMenu: 'drawer' // 左侧菜单抽屉模式
|
||||
}
|
||||
},
|
||||
{
|
||||
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
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
];
|
||||
Reference in New Issue
Block a user