feat: 首页重写
This commit is contained in:
parent
f03d2c46e8
commit
c3a9bc7a0f
|
@ -6,25 +6,24 @@ const moduleName = 'dashboard';
|
||||||
|
|
||||||
const routes: Array<RouteRecordRaw> = [
|
const routes: Array<RouteRecordRaw> = [
|
||||||
{
|
{
|
||||||
path: '/dashboard',
|
path: '/dashboard/welcome',
|
||||||
name: moduleName,
|
name: moduleName,
|
||||||
redirect: '/dashboard/welcome',
|
component: () => import('@/views/dashboard/welcome/index.vue'),
|
||||||
component: RouterView,
|
|
||||||
meta: {
|
meta: {
|
||||||
title: t('routes.dashboard.dashboard'),
|
title: t('routes.dashboard.dashboard'),
|
||||||
icon: 'ant-design:dashboard-outlined',
|
icon: 'ant-design:dashboard-outlined',
|
||||||
},
|
},
|
||||||
children: [
|
// children: [
|
||||||
{
|
// {
|
||||||
path: 'welcome',
|
// path: 'welcome',
|
||||||
name: `${moduleName}-welcome`,
|
// name: `${moduleName}-welcome`,
|
||||||
meta: {
|
// meta: {
|
||||||
title: t('routes.dashboard.workbench'),
|
// title: t('routes.dashboard.workbench'),
|
||||||
icon: 'ant-design:home-filled',
|
// icon: 'ant-design:home-filled',
|
||||||
},
|
// },
|
||||||
component: () => import('@/views/dashboard/welcome/index.vue'),
|
// component: () => import('@/views/dashboard/welcome/index.vue'),
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -2,4 +2,4 @@ import dashboard from './dashboard';
|
||||||
// import demos from './demos';
|
// import demos from './demos';
|
||||||
import account from './account';
|
import account from './account';
|
||||||
|
|
||||||
export default [/* ...demos, */ /* ...dashboard, */ ...account];
|
export default [/* ...demos, */ ...dashboard, ...account];
|
||||||
|
|
Loading…
Reference in New Issue