You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.1 KiB
45 lines
1.1 KiB
/** |
|
* @program: kicc-ui |
|
* @description: 指示板路由默认配置 |
|
* 当没有配置Dashboard菜单时,使用默认配置 |
|
* @author: entfrm开发团队-王翔 |
|
* @create: 2022/4/9 |
|
*/ |
|
|
|
import type { AppRouteModule } from '/@/router/types'; |
|
|
|
import { LAYOUT } from '/@/router/constant'; |
|
import { t } from '/@/hooks/web/useI18n'; |
|
import {isDevMode} from "/@/utils/env"; |
|
const dashboard: AppRouteModule = { |
|
path: '/dashboard', |
|
name: 'Dashboard', |
|
component: LAYOUT, |
|
redirect: '/dashboard/analysis', |
|
meta: { |
|
icon: 'ion:grid-outline', |
|
title: t('routes.dashboard.dashboard'), |
|
hideMenu: isDevMode() |
|
}, |
|
children: [ |
|
{ |
|
path: 'analysis', |
|
name: 'Analysis', |
|
component: () => import('/@/views/dashboard/analysis/index.vue'), |
|
meta: { |
|
// affix: true, |
|
title: t('routes.dashboard.analysis'), |
|
}, |
|
}, |
|
{ |
|
path: 'workbench', |
|
name: 'Workbench', |
|
component: () => import('/@/views/dashboard/workbench/index.vue'), |
|
meta: { |
|
title: t('routes.dashboard.workbench'), |
|
}, |
|
}, |
|
], |
|
}; |
|
|
|
export default dashboard;
|
|
|