import { RouteRecordRaw } from 'vue-router'; import { Layout } from '@/router/constant'; import { ProjectOutlined } from '@vicons/antd'; import { renderIcon, renderNew } from '@/utils/index'; const routes: Array = [ { 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;