项目初始化
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import type { AppRouteRecordRaw, AppRouteModule } from '@jeesite/core/router/types';
|
||||
|
||||
import { PAGE_NOT_FOUND_ROUTE, REDIRECT_ROUTE } from '@jeesite/core/router/routes/basic';
|
||||
import SCREEN_LAYOUT from '@jeesite/core/layouts/screen/index.vue';
|
||||
|
||||
import { mainOutRoutes } from './mainOut';
|
||||
import { PageEnum } from '@jeesite/core/enums/pageEnum';
|
||||
@@ -49,11 +50,30 @@ const ModPwdRoute: AppRouteModule = {
|
||||
const BigScreenRoute: AppRouteRecordRaw = {
|
||||
path: '/bigScreen',
|
||||
name: 'BigScreen',
|
||||
component: () => import('@jeesite/core/layouts/screen/index.vue'),
|
||||
component: SCREEN_LAYOUT,
|
||||
redirect: '/bigScreen/screenAnalysis',
|
||||
meta: {
|
||||
title: t('routes.dashboard.bigScreen'),
|
||||
ignoreAuth: false,
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: 'screenAnalysis',
|
||||
name: 'ScreenAnalysis',
|
||||
component: () => import('@jeesite/core/layouts/views/screen/analysis/index.vue'),
|
||||
meta: {
|
||||
title: t('routes.dashboard.bigScreen'),
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'screenSetting',
|
||||
name: 'ScreenSetting',
|
||||
component: () => import('@jeesite/core/layouts/views/screen/setting/index.vue'),
|
||||
meta: {
|
||||
title: t('routes.dashboard.bigSetting'),
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
// Basic routing without permission
|
||||
|
||||
@@ -1,24 +0,0 @@
|
||||
import type { AppRouteRecordRaw } from '@jeesite/core/router/types';
|
||||
import { t } from '@jeesite/core/hooks/web/useI18n';
|
||||
import { SCREEN_LAYOUT } from '@jeesite/core/layouts/screen/index.vue';
|
||||
|
||||
export const BigScreenRoute: AppRouteRecordRaw = {
|
||||
path: '/bigScreen',
|
||||
name: 'BigScreen',
|
||||
component: SCREEN_LAYOUT,
|
||||
redirect: '/bigScreen/Analysis',
|
||||
meta: {
|
||||
title: t('routes.dashboard.bigScreen'),
|
||||
ignoreAuth: false, // 需要登录权限
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: 'screenAnalysis',
|
||||
name: 'ScreenAnalysis',
|
||||
component: () => import('@jeesite/core/layouts/views/screen/analysis/index.vue'),
|
||||
meta: {
|
||||
title: t('routes.dashboard.bigScreen'),
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
||||
Reference in New Issue
Block a user