Files
naive-ui-admin/src/router/modules/about.ts
2021-08-06 17:06:33 +08:00

33 lines
736 B
TypeScript

import { RouteRecordRaw } from 'vue-router';
import { Layout } from '@/router/constant';
import { ProjectOutlined } from '@vicons/antd';
import { renderIcon, renderNew } from '@/utils/index';
const routes: Array<RouteRecordRaw> = [
{
path: '/about',
name: 'about',
component: Layout,
meta: {
sort: 9,
isRoot: true,
activeMenu: 'about_index',
},
children: [
{
path: 'index',
name: `about_index`,
meta: {
title: '关于',
icon: renderIcon(ProjectOutlined),
extra: renderNew(),
activeMenu: 'about_index',
},
component: () => import('@/views/about/index.vue'),
},
],
},
];
export default routes;