From 41d5624a6f85c11d1b9404a315fb0ff6e8e972d7 Mon Sep 17 00:00:00 2001 From: yuntian001 Date: Wed, 21 Jun 2023 10:26:53 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E7=A7=BB=E9=99=A4LayoutPage?= =?UTF-8?q?=E5=BC=95=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/routes/example/6-multilevel.ts | 4 ++-- src/router/routes/example/multilevel/1.ts | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/router/routes/example/6-multilevel.ts b/src/router/routes/example/6-multilevel.ts index a62c0a5d..4b645357 100644 --- a/src/router/routes/example/6-multilevel.ts +++ b/src/router/routes/example/6-multilevel.ts @@ -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( import.meta.glob('./multilevel/*.ts', { eager: true, import: 'routes' }), diff --git a/src/router/routes/example/multilevel/1.ts b/src/router/routes/example/multilevel/1.ts index 60e183ff..47f3eafd 100644 --- a/src/router/routes/example/multilevel/1.ts +++ b/src/router/routes/example/multilevel/1.ts @@ -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: [