fix(projects): 修复没有子页面的路由写法问题

This commit is contained in:
Soybean
2021-10-20 18:45:02 +08:00
parent 358d4e8a19
commit b80c224664
10 changed files with 154 additions and 71 deletions

View File

@ -1,13 +1,11 @@
import type { CustomRoute } from '@/interface';
import { EnumRoutePath } from '@/enum';
import { BasicLayout } from '@/layouts';
import { RouteNameMap } from '../helpers';
import { ROUTE_HOME } from '../routes';
const ROOT: CustomRoute = {
name: RouteNameMap.get('root'),
path: EnumRoutePath.root,
component: BasicLayout,
redirect: { name: ROUTE_HOME.name },
meta: {
isNotMenu: true