Files
shanxia2.0/web-admin/src/router/modules/demo.ts
T
2026-06-30 23:44:22 +08:00

83 lines
1.9 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import type { AppRouteRecord } from '@/types/router'
/**
* Demo 模板页(Fresh Mint UI 参考)
* Hash:/#/demo/console、/#/demo/unit 等
*/
export const demoRoutes: AppRouteRecord[] = [
{
id: 'DEMO00000000000000000000000001',
name: 'DemoGroup',
path: '/demo',
component: '/index/index',
meta: {
title: 'Demo',
icon: 'ri:palette-line',
keepAlive: false,
roles: ['admin']
},
children: [
{
id: 'DEMO00000000000000000000000002',
name: 'DemoConsole',
path: 'console',
component: '/dashboard/console/index',
meta: {
title: '工作台',
keepAlive: false
}
},
{
id: 'DEMO00000000000000000000000003',
name: 'DemoUnit',
path: 'unit',
component: '/demo/unit/index',
meta: {
title: '标准列表(单位)',
keepAlive: true
}
},
{
id: 'DEMO00000000000000000000000004',
name: 'DemoOrder',
path: 'order',
component: '/demo/order/index',
meta: {
title: '复杂列表(订单)',
keepAlive: true
}
},
{
id: 'DEMO00000000000000000000000005',
name: 'DemoProduct',
path: 'product',
component: '/demo/product/index',
meta: {
title: '商品列表',
keepAlive: true
}
},
{
id: 'DEMO00000000000000000000000006',
name: 'DemoCategory',
path: 'category',
component: '/demo/category/index',
meta: {
title: '树形主数据(分类)',
keepAlive: true
}
},
{
id: 'DEMO00000000000000000000000007',
name: 'DemoUser',
path: 'user',
component: '/system/user/index',
meta: {
title: '用户 CRUD',
keepAlive: true
}
}
]
}
]