feat(projects): 新增主题配置

This commit is contained in:
Soybean
2021-08-18 12:02:59 +08:00
parent 09a28d8e1d
commit ed67b797c2
30 changed files with 528 additions and 47 deletions

View File

@ -1,4 +1,5 @@
import type { RouteRecordRaw } from 'vue-router';
import { BasicLayout } from '@/layouts';
/**
* 自定义路由
@ -7,16 +8,19 @@ export const customRoutes: Array<RouteRecordRaw> = [
{
name: 'root',
path: '/',
redirect: 'home'
},
{
name: 'home',
path: '/home',
component: () => import('@/views/home/index.vue')
},
{
name: 'system',
path: '/system',
component: () => import('@/views/system/index.vue')
redirect: '/home',
component: BasicLayout,
children: [
{
name: 'home',
path: '/home',
component: () => import('@/views/home/index.vue')
},
{
name: 'system',
path: '/system',
component: () => import('@/views/system/index.vue')
}
]
}
];