refactor(projects): 重构路由类型和路由元数据类型,重构多级菜单路由写法

This commit is contained in:
Soybean
2021-11-28 12:17:48 +08:00
parent 9fb641f71e
commit d683894beb
20 changed files with 144 additions and 115 deletions

View File

@@ -19,12 +19,13 @@ const constantRoutes: RouteRecordRaw[] = [
redirect: { name: ROUTE_HOME_NAME }
},
{
// 名称、路随意,不在路由声明里面,只是为各个页面充当传递BlankLayout的桥梁因此访问该路由时重定向到404
// 名称、路随意,不在路由声明里面,只是为各个子路由充当应用BlankLayout布局的桥梁因此访问该路由时重定向到404
name: 'constant-single_',
path: '/constant-single_',
component: BlankLayout,
redirect: { name: routeName('not-found') },
meta: {
title: 'constant-single_',
keepAlive: true
},
children: [