Files
lingji-work-fe/src/router/routes/modules/agent.ts

36 lines
786 B
TypeScript
Raw Normal View History

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';
const COMPONENTS: AppRouteRecordRaw[] = [
{
path: '/agent',
name: 'Agent',
redirect: 'agent/index',
meta: {
locale: '灵机ai',
icon: IconRepository,
requiresAuth: true,
requireLogin: true,
roles: ['*'],
id: MENU_GROUP_IDS.AGENT,
},
children: [
{
path: 'index',
name: 'AgentIndex',
component: () => import('@/views/agent/index'),
meta: {
locale:'智能体应用',
requiresAuth: false,
requireLogin: true,
hideFooter: true,
},
}
],
},
];
export default COMPONENTS;