mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
feat(projects): 新增网址导航页面
This commit is contained in:
@ -258,6 +258,14 @@ const routeConstMap = new Map<RouteKey, RouteConst>([
|
||||
path: '/about',
|
||||
title: '关于'
|
||||
}
|
||||
],
|
||||
[
|
||||
'website',
|
||||
{
|
||||
name: 'website',
|
||||
path: '/website',
|
||||
title: '网址导航'
|
||||
}
|
||||
]
|
||||
]);
|
||||
|
||||
|
27
src/router/modules/website.ts
Normal file
27
src/router/modules/website.ts
Normal 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;
|
Reference in New Issue
Block a user