mirror of
https://github.com/jekip/naive-ui-admin.git
synced 2026-02-09 16:02:27 +08:00
33 lines
736 B
TypeScript
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;
|