项目初始化
This commit is contained in:
47
web-vue/packages/core/router/routes/modules/account.ts
Normal file
47
web-vue/packages/core/router/routes/modules/account.ts
Normal file
@@ -0,0 +1,47 @@
|
||||
import type { AppRouteModule } from '@jeesite/core/router/types';
|
||||
|
||||
import { LAYOUT } from '@jeesite/core/router/constant';
|
||||
import { t } from '@jeesite/core/hooks/web/useI18n';
|
||||
|
||||
const account: AppRouteModule = {
|
||||
path: '/account',
|
||||
name: 'Account',
|
||||
component: LAYOUT,
|
||||
redirect: '/account/center',
|
||||
meta: {
|
||||
icon: 'i-ion:person-outline',
|
||||
title: t('sys.account.center'),
|
||||
orderNo: 100000,
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: 'center',
|
||||
name: 'AccountCenter',
|
||||
component: () => import('@jeesite/core/layouts/views/account/center.vue'),
|
||||
meta: {
|
||||
icon: 'i-ion:person-outline',
|
||||
title: t('sys.account.center'),
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'modPwd',
|
||||
name: 'AccountModPwd',
|
||||
component: () => import('@jeesite/core/layouts/views/account/modPwd.vue'),
|
||||
meta: {
|
||||
icon: 'i-ant-design:key-outlined',
|
||||
title: t('sys.account.modifyPwd'),
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'modPwdQuestion',
|
||||
name: 'AccountModPwdQuestion',
|
||||
component: () => import('@jeesite/core/layouts/views/account/modPwdQuestion.vue'),
|
||||
meta: {
|
||||
icon: 'i-ant-design:key-outlined',
|
||||
title: t('sys.account.modifyPqa'),
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
export default account;
|
||||
50
web-vue/packages/core/router/routes/modules/desktop.ts
Normal file
50
web-vue/packages/core/router/routes/modules/desktop.ts
Normal file
@@ -0,0 +1,50 @@
|
||||
import type { AppRouteModule } from '@jeesite/core/router/types';
|
||||
|
||||
import { LAYOUT } from '@jeesite/core/router/constant';
|
||||
import { t } from '@jeesite/core/hooks/web/useI18n';
|
||||
|
||||
const desktop: AppRouteModule = {
|
||||
path: '/desktop',
|
||||
name: 'Desktop',
|
||||
component: LAYOUT,
|
||||
redirect: '/desktop/analysis',
|
||||
meta: {
|
||||
orderNo: 10,
|
||||
icon: 'i-ant-design:home-outlined',
|
||||
title: t('routes.dashboard.dashboard'),
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: 'analysis',
|
||||
name: 'Analysis',
|
||||
component: () => import('@jeesite/core/layouts/views/desktop/analysis/index.vue'),
|
||||
meta: {
|
||||
// affix: true,
|
||||
icon: 'i-ant-design:home-outlined',
|
||||
tabIcon: 'i-ant-design:home-outlined',
|
||||
title: t('routes.dashboard.analysis'),
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'workbench',
|
||||
name: 'Workbench',
|
||||
component: () => import('@jeesite/core/layouts/views/desktop/workbench/index.vue'),
|
||||
meta: {
|
||||
icon: 'i-ant-design:read-outlined',
|
||||
title: t('routes.dashboard.workbench'),
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'about',
|
||||
name: 'AboutPage',
|
||||
component: () => import('@jeesite/core/layouts/views/desktop/about/index.vue'),
|
||||
meta: {
|
||||
title: t('routes.dashboard.about'),
|
||||
icon: 'i-ant-design:tag-outlined',
|
||||
hideMenu: true,
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
export default desktop;
|
||||
Reference in New Issue
Block a user