mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-09-24 00:00:52 +00:00
81 lines
2.3 KiB
Go
81 lines
2.3 KiB
Go
import { Layout } from '@/routers/constant';
|
|
|
|
const aiRouter = {
|
|
sort: 4,
|
|
path: '/ai',
|
|
name: 'AI-Menu',
|
|
component: Layout,
|
|
redirect: '/ai/model/account',
|
|
meta: {
|
|
icon: 'p-jiqiren2',
|
|
title: 'menu.aiTools',
|
|
},
|
|
children: [
|
|
{
|
|
path: '/ai/agents/agent',
|
|
name: 'Agents',
|
|
component: () => import('@/views/ai/agents/agent/index.vue'),
|
|
meta: {
|
|
icon: 'p-jiqiren2',
|
|
title: 'aiTools.agents.agent',
|
|
permission: 'ai_agent_view',
|
|
},
|
|
},
|
|
{
|
|
path: '/ai/model/account',
|
|
name: 'AIModel',
|
|
component: () => import('@/views/ai/model/index.vue'),
|
|
meta: {
|
|
icon: 'p-moxing-menu',
|
|
title: 'aiTools.model.model',
|
|
permission: 'ai_model_view',
|
|
},
|
|
},
|
|
{
|
|
path: '/ai/model/local',
|
|
hidden: true,
|
|
name: 'LocalModel',
|
|
component: () => import('@/views/ai/model/index.vue'),
|
|
meta: {
|
|
title: 'aiTools.model.localModel',
|
|
activeMenu: '/ai/model/account',
|
|
permission: 'ai_model_view',
|
|
},
|
|
},
|
|
{
|
|
path: '/ai/mcp',
|
|
name: 'MCPServer',
|
|
component: () => import('@/views/ai/mcp/server/index.vue'),
|
|
meta: {
|
|
icon: 'p-mcp-menu',
|
|
title: 'menu.mcp',
|
|
permission: 'ai_mcp_view',
|
|
},
|
|
},
|
|
{
|
|
path: '/ai/gpu/current',
|
|
name: 'GPU',
|
|
component: () => import('@/views/ai/gpu/current/index.vue'),
|
|
meta: {
|
|
icon: 'p-gpu-menu',
|
|
title: 'aiTools.gpu.gpu',
|
|
activeMenu: '/ai/gpu/current',
|
|
permission: 'ai_gpu_view',
|
|
},
|
|
},
|
|
{
|
|
path: '/ai/gpu/history',
|
|
name: 'GPUHistory',
|
|
component: () => import('@/views/ai/gpu/history/index.vue'),
|
|
hidden: true,
|
|
meta: {
|
|
title: 'aiTools.gpu.history',
|
|
activeMenu: '/ai/gpu/current',
|
|
permission: 'ai_gpu_view',
|
|
},
|
|
},
|
|
],
|
|
};
|
|
|
|
export default aiRouter;
|