更新默认菜单
This commit is contained in:
parent
682f9b2c58
commit
b04c509500
@ -8,7 +8,7 @@
|
||||
class="sidebar-toggle"
|
||||
>
|
||||
<template #icon>
|
||||
<Icon icon="tabler:menu" />
|
||||
<Icon icon="tabler:menu-2" />
|
||||
</template>
|
||||
</n-button>
|
||||
|
||||
|
||||
@ -46,9 +46,9 @@ function saveToStorage(items: AppMenuItem[]) {
|
||||
function getDefaultMenus(): AppMenuItem[] {
|
||||
return [
|
||||
{ id: 'dashboard', key: 'Dashboard', label: '仪表板', icon: 'tabler:dashboard', routeName: 'Dashboard', order: 1, type: 'route' },
|
||||
{ id: 'work', key: 'work', label: '工作', icon: 'tabler:device-desktop', type: 'workspace', workspaceName: '工作', url: '/workspace/work', order: 2 },
|
||||
{ id: 'design', key: 'design', label: '设计', icon: 'tabler:pencil', type: 'workspace', workspaceName: '设计', url: '/workspace/design', order: 3 },
|
||||
{ id: 'website', key: 'website', label: '网站', icon: 'tabler:world', type: 'workspace', workspaceName: '网站', url: '/workspace/website', order: 4 },
|
||||
{ id: 'work', key: 'work', label: '工作', icon: 'tabler:device-desktop', type: 'workspace', workspaceName: 'work', url: '/workspace/work', order: 2 },
|
||||
{ id: 'design', key: 'design', label: '设计', icon: 'tabler:pencil', type: 'workspace', workspaceName: 'design', url: '/workspace/design', order: 3 },
|
||||
{ id: 'website', key: 'website', label: '网站', icon: 'tabler:world', type: 'workspace', workspaceName: 'jsite', url: '/workspace/jsite', order: 4 },
|
||||
{ id: 'agents', key: 'AgentList', label: 'AI智能体', icon: 'hugeicons:robotic', type: 'route', routeName: 'AgentList', order: 5 },
|
||||
{ id: 'nodes', key: 'NodeList', label: '节点', icon: 'carbon:add-child-node', type: 'route', routeName: 'NodeList', order: 6 },
|
||||
{ id: 'localJobs', key: 'LocalJobList', label: '任务队列', icon: 'iconoir:task-list', type: 'route', routeName: 'LocalJobList', order: 7 },
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user