mirror of
https://github.com/jekip/naive-ui-admin.git
synced 2026-02-17 11:42:27 +08:00
feat:防抖节流等指令
This commit is contained in:
31
src/router/modules/test.ts
Normal file
31
src/router/modules/test.ts
Normal file
@@ -0,0 +1,31 @@
|
||||
import { RouteRecordRaw } from 'vue-router';
|
||||
import { Layout } from '@/router/constant';
|
||||
import { ProjectOutlined } from '@vicons/antd';
|
||||
import { renderIcon } from '@/utils/index';
|
||||
|
||||
const routes: Array<RouteRecordRaw> = [
|
||||
{
|
||||
path: '/test',
|
||||
name: 'test',
|
||||
component: Layout,
|
||||
meta: {
|
||||
sort: 12,
|
||||
isRoot: true,
|
||||
activeMenu: 'test_index',
|
||||
icon: renderIcon(ProjectOutlined),
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: 'index',
|
||||
name: `test_index`,
|
||||
meta: {
|
||||
title: '指令测试',
|
||||
activeMenu: 'test_index',
|
||||
},
|
||||
component: () => import('@/views/test/index.vue'),
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
export default routes;
|
||||
Reference in New Issue
Block a user