mirror of
https://github.com/continew-org/continew-admin.git
synced 2025-09-13 02:57:13 +08:00
1.父级菜单也必须存在 name 属性,父级菜单 name 属性,在很早之前曾考虑过移除,后来发现会引起 Bug,于是没有改动。但前段时间调整动态路由时没有想起该情况,一时疏忽移除了,所幸发现问题不晚,现在及时恢复回来 2.优化实时监控示例的相关变量命名
40 lines
887 B
TypeScript
40 lines
887 B
TypeScript
import { DEFAULT_LAYOUT } from '../../base';
|
|
import { AppRouteRecordRaw } from '../../types';
|
|
|
|
const LIST: AppRouteRecordRaw = {
|
|
name: 'List',
|
|
path: '/demo/list',
|
|
component: DEFAULT_LAYOUT,
|
|
meta: {
|
|
locale: 'menu.list',
|
|
requiresAuth: true,
|
|
icon: 'list',
|
|
order: 900,
|
|
},
|
|
children: [
|
|
{
|
|
name: 'SearchTable',
|
|
path: 'search-table', // The midline path complies with SEO specifications
|
|
component: () =>
|
|
import('@/views/demo/list/search-table/index.vue'),
|
|
meta: {
|
|
locale: 'menu.list.searchTable',
|
|
requiresAuth: true,
|
|
roles: ['*'],
|
|
},
|
|
},
|
|
{
|
|
name: 'Card',
|
|
path: 'card',
|
|
component: () => import('@/views/demo/list/card/index.vue'),
|
|
meta: {
|
|
locale: 'menu.list.cardList',
|
|
requiresAuth: true,
|
|
roles: ['*'],
|
|
},
|
|
},
|
|
],
|
|
};
|
|
|
|
export default LIST;
|