1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
| // eslint-disable-next-line
| import { UserLayout, BasicLayout, RouteView, BlankLayout, PageView } from '@/components/layouts'
|
| export const asyncRouterMap = [
|
| {
| path: '/',
| name: 'MenuIndex.vue',
| component: BasicLayout,
| meta: { title: '首页' },
| redirect: '/dashboard/workplace',
| children: [
|
| ]
| },
| {
| path: '*', redirect: '/404', hidden: true
| }
| ]
|
| /**
| * 基础路由
| * @type { *[] }
| */
| export const constantRouterMap = [
| {
| path: '/user/login',
| name: 'login',
| component: () => import(/* webpackChunkName: "user" */ '@/login/index')
| },
| {
| path: '/404',
| name: '404',
| component: () => import(/* webpackChunkName: "fail" */ '@/views/system/404')
| },
|
| ]
|
|