fix: router layout (merge request !9)

Squash merge branch 'fix/route/layout' into 'develop'
fix: router layout
This commit is contained in:
pengYYYYY 2021-09-04 10:22:35 +08:00
parent b322bceefc
commit def496aff8
2 changed files with 7 additions and 8 deletions

View File

@ -3,7 +3,7 @@ export default [
path: '/dashboard',
icon: 'dashboard',
title: '仪表盘',
component: '../layouts/td-layout.tsx',
component: '../Layouts/td-layout.tsx',
redirect: '/dashboard/base',
children: [
{
@ -22,7 +22,7 @@ export default [
path: '/list',
icon: 'view-module',
title: '列表页',
component: '../layouts/td-layout.tsx',
component: '../Layouts/td-layout.tsx',
redirect: '/list/base',
children: [
{
@ -51,7 +51,7 @@ export default [
path: '/form',
icon: 'queue',
title: '表单页',
component: '../layouts/td-layout.tsx',
component: '../Layouts/td-layout.tsx',
redirect: '/form/base',
children: [
{
@ -70,7 +70,7 @@ export default [
path: '/detail',
icon: 'layers',
title: '详情页',
component: '../layouts/td-layout.tsx',
component: '../Layouts/td-layout.tsx',
redirect: '/detail/base',
children: [
{
@ -101,7 +101,7 @@ export default [
path: '/result',
icon: 'check-circle',
title: '结果页',
component: '../layouts/td-layout.tsx',
component: '../Layouts/td-layout.tsx',
redirect: '/result/success',
children: [
{
@ -145,7 +145,7 @@ export default [
path: '/user',
icon: 'user-circle',
title: '个人页',
component: '../layouts/td-layout.tsx',
component: '../Layouts/td-layout.tsx',
redirect: '/user/index',
children: [
{
@ -159,7 +159,7 @@ export default [
{
path: '/login',
title: '登录页',
component: '../layouts/blank.vue',
component: '../Layouts/blank.vue',
icon: 'chevron-right-rectangle',
redirect: '/login/index',
children: [

View File

@ -27,7 +27,6 @@ const routes: Array<RouteRecordRaw> = [
{
path: '',
redirect: '/dashboard/base',
component: () => import('@/pages/dashboard/base/index.vue'),
},
];