refactor: refactor async routes

This commit is contained in:
张传龙
2022-08-07 22:25:28 +08:00
parent 869a68812c
commit ef3aaa5be5
10 changed files with 159 additions and 182 deletions

View File

@@ -0,0 +1,23 @@
const Layout = () => import('@/layout/index.vue')
export default {
name: 'Dashboard',
path: '/',
component: Layout,
redirect: '/home',
meta: {
title: 'Dashboard',
icon: 'mdi:chart-bar',
},
children: [
{
name: 'Home',
path: 'home',
component: () => import('./index.vue'),
meta: {
title: '首页',
icon: 'mdi:home',
},
},
],
}