mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-28 00:42:12 +08:00
fix: fix missing cache of refresh page
This commit is contained in:
44
src/router/routes/modules/dashboard.ts
Normal file
44
src/router/routes/modules/dashboard.ts
Normal file
@@ -0,0 +1,44 @@
|
||||
import type { AppRouteModule } from '/@/router/types';
|
||||
|
||||
import { PAGE_LAYOUT_COMPONENT } from '/@/router/constant';
|
||||
|
||||
export default {
|
||||
layout: {
|
||||
path: '/dashboard',
|
||||
name: 'Dashboard',
|
||||
component: PAGE_LAYOUT_COMPONENT,
|
||||
redirect: '/dashboard/workbench',
|
||||
meta: {
|
||||
icon: 'ant-design:home-outlined',
|
||||
title: 'Dashboard',
|
||||
},
|
||||
},
|
||||
|
||||
routes: [
|
||||
{
|
||||
path: '/welcome',
|
||||
name: 'Welcome',
|
||||
component: () => import('/@/views/dashboard/welcome/index.vue'),
|
||||
meta: {
|
||||
title: '首页',
|
||||
},
|
||||
},
|
||||
{
|
||||
path: '/workbench',
|
||||
name: 'Workbench',
|
||||
component: () => import('/@/views/dashboard/workbench/index.vue'),
|
||||
meta: {
|
||||
title: '工作台',
|
||||
affix: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: '/analysis',
|
||||
name: 'Analysis',
|
||||
component: () => import('/@/views/dashboard/analysis/index.vue'),
|
||||
meta: {
|
||||
title: '分析页',
|
||||
},
|
||||
},
|
||||
],
|
||||
} as AppRouteModule;
|
Reference in New Issue
Block a user