Skip to content

Commit

Permalink
refactor: 移除LayoutPage引用
Browse files Browse the repository at this point in the history
  • Loading branch information
yuntian001 committed Jun 21, 2023
1 parent 0d3447e commit 41d5624
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/router/routes/example/6-multilevel.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { RouteRecordRaw } from 'vue-router';
import { LayoutPage } from '@/router/constant';
import { Layout } from '@/router/constant';
import { concatObjectValue } from '@/utils/helper';
export const routes: RouteRecordRaw[] = [
{
path: 'multilevel',
component: LayoutPage,
component: Layout,
meta: { title: '多级菜单' },
children: concatObjectValue<RouteRecordRaw>(
import.meta.glob('./multilevel/*.ts', { eager: true, import: 'routes' }),
Expand Down
6 changes: 3 additions & 3 deletions src/router/routes/example/multilevel/1.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { RouteRecordRaw } from 'vue-router';
import { LayoutPage } from '@/router/constant';
import { Layout } from '@/router/constant';
export const routes: RouteRecordRaw[] = [
{
path: '1',
component: LayoutPage,
component: Layout,
meta: { title: '多级菜单1' },
children: [
{
path: '1-1',
component: LayoutPage,
component: Layout,
meta: { title: '多级菜单1-1', alwaysShow: true },
redirect: '/example/multilevel/1/1-1/1-1-1',
children: [
Expand Down

0 comments on commit 41d5624

Please sign in to comment.