2025-07-10 19:05:38 +08:00
|
|
|
import type { AppRouteRecordRaw } from '../types';
|
|
|
|
|
import { MENU_GROUP_IDS } from '@/router/constants';
|
|
|
|
|
|
|
|
|
|
import IconRepository from '@/assets/svg/icon-repository.svg';
|
|
|
|
|
|
|
|
|
|
const COMPONENTS: AppRouteRecordRaw[] = [
|
|
|
|
|
{
|
|
|
|
|
path: '/agent',
|
|
|
|
|
name: 'Agent',
|
|
|
|
|
redirect: 'agent/listData',
|
|
|
|
|
meta: {
|
2025-07-11 18:30:44 +08:00
|
|
|
locale: '扣子智能体',
|
2025-07-10 19:05:38 +08:00
|
|
|
icon: IconRepository,
|
|
|
|
|
requiresAuth: true,
|
|
|
|
|
requireLogin: true,
|
|
|
|
|
roles: ['*'],
|
2025-07-15 15:16:03 +08:00
|
|
|
id: MENU_GROUP_IDS.AGENT,
|
2025-07-10 19:05:38 +08:00
|
|
|
},
|
2025-07-15 15:16:03 +08:00
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
path: 'index',
|
|
|
|
|
name: 'AgentListData',
|
|
|
|
|
component: () => import('@/views/agent/index'),
|
|
|
|
|
meta: {
|
|
|
|
|
locale: '智能体列表',
|
|
|
|
|
requiresAuth: false,
|
|
|
|
|
requireLogin: true,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: 'chat',
|
|
|
|
|
name: 'Chat',
|
|
|
|
|
component: () => import('@/views/agent/chat'),
|
|
|
|
|
meta: {
|
|
|
|
|
hideSidebar: true,
|
|
|
|
|
requiresAuth: false,
|
|
|
|
|
requireLogin: true,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: 'workFlow',
|
|
|
|
|
name: 'AgentWorkFlow',
|
|
|
|
|
component: () => import('@/views/agent/work-flow'),
|
|
|
|
|
meta: {
|
|
|
|
|
hideSidebar: true,
|
|
|
|
|
requiresAuth: false,
|
|
|
|
|
requireLogin: true,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
],
|
2025-07-14 11:48:19 +08:00
|
|
|
},
|
2025-07-10 19:05:38 +08:00
|
|
|
];
|
|
|
|
|
|
|
|
|
|
export default COMPONENTS;
|