fix: 菜单组件mock数据与实际保持一致

This commit is contained in:
陆伯言
2026-07-20 00:54:56 +08:00
parent 772286fb73
commit 054deae3bb

View File

@@ -194,18 +194,46 @@ export const MOCK_MENUS = [
export const MOCK_MENU_LIST = [ export const MOCK_MENU_LIST = [
{ {
id: 1, id: 1,
name: 'Workspace', name: 'Dashboard',
status: 1, status: 1,
type: 'menu', type: 'catalog',
icon: 'mdi:dashboard', icon: 'lucide:layout-dashboard',
path: '/workspace', path: '/dashboard',
component: '/dashboard/workspace/index',
meta: { meta: {
icon: 'carbon:workspace', icon: 'lucide:layout-dashboard',
title: 'page.dashboard.workspace', order: -1,
affixTab: true, title: 'page.dashboard.title',
order: 0,
}, },
children: [
{
id: 101,
pid: 1,
status: 1,
type: 'menu',
name: 'Analytics',
path: 'analytics',
component: '/dashboard/analytics/index',
meta: {
affixTab: true,
icon: 'lucide:area-chart',
title: 'page.dashboard.analytics',
keepAlive: true,
},
},
{
id: 102,
pid: 1,
status: 1,
type: 'menu',
name: 'Workspace',
path: 'workspace',
component: '/views/dashboard/workspace/index',
meta: {
icon: 'carbon:workspace',
title: 'page.dashboard.workspace',
},
},
],
}, },
{ {
id: 2, id: 2,