This commit is contained in:
xiaoma
2022-11-24 09:19:19 +08:00
parent a646de72e2
commit 25d6134923
11 changed files with 2389 additions and 2623 deletions

View File

@@ -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),

View 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;

View File

@@ -11,7 +11,7 @@ const routes: Array<RouteRecordRaw> = [
meta: {
title: '项目文档',
icon: renderIcon(DocumentTextOutline),
sort: 9,
sort: 11,
},
},
];

View File

@@ -12,7 +12,7 @@ const routes: Array<RouteRecordRaw> = [
title: 'Pro 版本',
extra: renderNew(),
icon: renderIcon(SketchOutlined),
sort: 10,
sort: 12,
},
},
];

View File

@@ -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;