mirror of
https://github.com/jekip/naive-ui-admin.git
synced 2026-02-12 09:12:28 +08:00
1.8.2
This commit is contained in:
@@ -9,7 +9,7 @@ const routes: Array<RouteRecordRaw> = [
|
||||
name: 'about',
|
||||
component: Layout,
|
||||
meta: {
|
||||
sort: 9,
|
||||
sort: 10,
|
||||
isRoot: true,
|
||||
activeMenu: 'about_index',
|
||||
icon: renderIcon(ProjectOutlined),
|
||||
|
||||
31
src/router/modules/directive.ts
Normal file
31
src/router/modules/directive.ts
Normal file
@@ -0,0 +1,31 @@
|
||||
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;
|
||||
@@ -11,7 +11,7 @@ const routes: Array<RouteRecordRaw> = [
|
||||
meta: {
|
||||
title: '项目文档',
|
||||
icon: renderIcon(DocumentTextOutline),
|
||||
sort: 9,
|
||||
sort: 11,
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
@@ -12,7 +12,7 @@ const routes: Array<RouteRecordRaw> = [
|
||||
title: 'Pro 版本',
|
||||
extra: renderNew(),
|
||||
icon: renderIcon(SketchOutlined),
|
||||
sort: 10,
|
||||
sort: 12,
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
@@ -1,31 +0,0 @@
|
||||
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