Fixes bug 新增 顶部混合菜单

This commit is contained in:
Ah jung
2021-08-06 17:06:33 +08:00
parent 450234e7ea
commit 3e0b8efe7e
19 changed files with 432 additions and 63 deletions

View File

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

View File

@@ -1,7 +1,7 @@
import { RouteRecordRaw } from 'vue-router';
import { Layout } from '@/router/constant';
import { DocumentTextOutline } from '@vicons/ionicons5';
import { renderIcon, renderNew } from '@/utils/index';
import { renderIcon } from '@/utils/index';
const routes: Array<RouteRecordRaw> = [
{
@@ -12,7 +12,6 @@ const routes: Array<RouteRecordRaw> = [
title: '项目文档',
icon: renderIcon(DocumentTextOutline),
sort: 8,
extra: renderNew(),
},
},
];

View File

@@ -41,6 +41,7 @@ const routes: Array<RouteRecordRaw> = [
meta: {
title: '基础详情',
hidden: true,
activeMenu: 'basic-list',
},
component: () => import('@/views/list/basicList/info.vue'),
},