mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-11-12 05:33:48 +08:00
40 lines
1.0 KiB
JavaScript
40 lines
1.0 KiB
JavaScript
/*
|
||
* 首页路由
|
||
*
|
||
* @Author: 1024创新实验室-主任:卓大
|
||
* @Date: 2022-09-06 20:51:41
|
||
* @Wechat: zhuda1024
|
||
* @Email: lab1024@163.com
|
||
* @Copyright 1024创新实验室 ( https://1024lab.net ),Since 2012
|
||
*/
|
||
import { HOME_PAGE_NAME } from '/@/constants/system/home-const';
|
||
import { MENU_TYPE_ENUM } from '/@/constants/system/menu-const';
|
||
import SmartLayout from '/@/layout/smart-layout.vue';
|
||
|
||
export const homeRouters = [
|
||
{
|
||
path: '/',
|
||
name: '_home',
|
||
redirect: { name: HOME_PAGE_NAME },
|
||
component: SmartLayout,
|
||
meta: {
|
||
title: '首页',
|
||
menuType: MENU_TYPE_ENUM.CATALOG.value,
|
||
icon: 'HomeOutlined',
|
||
},
|
||
children: [
|
||
{
|
||
path: '/home',
|
||
name: HOME_PAGE_NAME,
|
||
meta: {
|
||
title: '首页',
|
||
menuType: MENU_TYPE_ENUM.MENU.value,
|
||
icon: 'HomeOutlined',
|
||
parentMenuList: [{ name: '_home', title: '首页' }],
|
||
},
|
||
component: () => import('/@/views/system/home/index.vue'),
|
||
},
|
||
],
|
||
},
|
||
];
|