2025-07-10 19:05:38 +08:00
|
|
|
import type { AppRouteRecordRaw } from '../types';
|
|
|
|
|
import { MENU_GROUP_IDS } from '@/router/constants';
|
|
|
|
|
|
2025-07-25 15:05:40 +08:00
|
|
|
import IconRepository from '@/assets/svg/chatbot.svg';
|
2025-07-10 19:05:38 +08:00
|
|
|
|
|
|
|
|
const COMPONENTS: AppRouteRecordRaw[] = [
|
2025-07-25 10:51:04 +08:00
|
|
|
{
|
|
|
|
|
path: '/agent',
|
2025-07-25 13:48:49 +08:00
|
|
|
name: 'Agent',
|
|
|
|
|
redirect: 'agent/index',
|
|
|
|
|
meta: {
|
2025-07-28 14:45:32 +08:00
|
|
|
locale: '灵机ai',
|
2025-07-25 13:48:49 +08:00
|
|
|
icon: IconRepository,
|
|
|
|
|
requiresAuth: true,
|
|
|
|
|
requireLogin: true,
|
|
|
|
|
roles: ['*'],
|
|
|
|
|
id: MENU_GROUP_IDS.AGENT,
|
|
|
|
|
},
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
path: 'index',
|
|
|
|
|
name: 'AgentIndex',
|
|
|
|
|
component: () => import('@/views/agent/index'),
|
|
|
|
|
meta: {
|
2025-07-28 14:45:32 +08:00
|
|
|
locale:'智能体应用',
|
2025-07-25 13:48:49 +08:00
|
|
|
requiresAuth: false,
|
|
|
|
|
requireLogin: true,
|
2025-07-28 16:08:02 +08:00
|
|
|
hideFooter: true,
|
2025-07-30 10:50:26 +08:00
|
|
|
isAgentRoute: true
|
2025-07-25 13:48:49 +08:00
|
|
|
},
|
2025-07-30 10:50:26 +08:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: 'chat',
|
|
|
|
|
name: 'AgentChat',
|
|
|
|
|
component: () => import('@/views/agent/chat'),
|
|
|
|
|
meta: {
|
|
|
|
|
hideSidebar: true,
|
|
|
|
|
requiresAuth: false,
|
|
|
|
|
requireLogin: true,
|
|
|
|
|
hideFooter: true,
|
|
|
|
|
id: MENU_GROUP_IDS.AGENT,
|
|
|
|
|
isAgentRoute: true
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
path: 'workFlow',
|
|
|
|
|
name: 'AgentWorkFlow',
|
|
|
|
|
component: () => import('@/views/agent/work-flow'),
|
|
|
|
|
meta: {
|
|
|
|
|
hideSidebar: true,
|
|
|
|
|
requiresAuth: false,
|
|
|
|
|
requireLogin: true,
|
|
|
|
|
hideFooter: true,
|
|
|
|
|
id: MENU_GROUP_IDS.AGENT,
|
|
|
|
|
isAgentRoute: true
|
|
|
|
|
},
|
|
|
|
|
},
|
2025-07-25 13:48:49 +08:00
|
|
|
],
|
2025-07-25 10:51:04 +08:00
|
|
|
},
|
2025-07-10 19:05:38 +08:00
|
|
|
];
|
|
|
|
|
|
|
|
|
|
export default COMPONENTS;
|