mirror of
https://github.com/jekip/naive-ui-admin.git
synced 2026-02-08 07:22:27 +08:00
32 lines
729 B
TypeScript
32 lines
729 B
TypeScript
import { RouteRecordRaw } from 'vue-router';
|
|
import { Layout } from '@/router/constant';
|
|
import { BorderOuterOutlined } from '@vicons/antd';
|
|
import { renderIcon } from '@/utils/index';
|
|
|
|
const routes: Array<RouteRecordRaw> = [
|
|
{
|
|
path: '/directive',
|
|
name: 'directive',
|
|
component: Layout,
|
|
meta: {
|
|
sort: 9,
|
|
isRoot: true,
|
|
activeMenu: 'directive_index',
|
|
icon: renderIcon(BorderOuterOutlined),
|
|
},
|
|
children: [
|
|
{
|
|
path: 'index',
|
|
name: `directive_index`,
|
|
meta: {
|
|
title: '指令示例',
|
|
activeMenu: 'directive_index',
|
|
},
|
|
component: () => import('@/views/directive/index.vue'),
|
|
},
|
|
],
|
|
},
|
|
];
|
|
|
|
export default routes;
|