feat(projects): 新增网址导航页面

This commit is contained in:
Soybean
2021-11-24 19:14:13 +08:00
parent 98a7d25cf8
commit 32aa5ee75a
11 changed files with 154 additions and 3 deletions

View File

@ -258,6 +258,14 @@ const routeConstMap = new Map<RouteKey, RouteConst>([
path: '/about',
title: '关于'
}
],
[
'website',
{
name: 'website',
path: '/website',
title: '网址导航'
}
]
]);

View File

@ -0,0 +1,27 @@
import type { CustomRoute } from '@/interface';
import { setSingleRoute } from '@/utils';
import { BlankLayout } from '@/layouts';
import Website from '@/views/website/index.vue';
import { getRouteConst, routeName } from '../constant';
const { name, path, title } = getRouteConst('website');
const WEBSITE: CustomRoute = setSingleRoute({
route: {
name,
path,
component: Website,
meta: {
title,
icon: 'codicon:remote-explorer',
isNotMenu: true
}
},
container: BlankLayout,
meta: {
order: 8
},
notFoundName: routeName('not-found')
});
export default WEBSITE;