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[] = [
|
2025-07-25 10:51:04 +08:00
|
|
|
{
|
|
|
|
|
path: '/agent',
|
2025-07-25 13:48:49 +08:00
|
|
|
name: 'Agent',
|
|
|
|
|
redirect: 'agent/index',
|
|
|
|
|
meta: {
|
|
|
|
|
locale: '扣子智能体',
|
|
|
|
|
icon: IconRepository,
|
|
|
|
|
requiresAuth: true,
|
|
|
|
|
requireLogin: true,
|
|
|
|
|
roles: ['*'],
|
|
|
|
|
id: MENU_GROUP_IDS.AGENT,
|
|
|
|
|
},
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
path: 'index',
|
|
|
|
|
name: 'AgentIndex',
|
|
|
|
|
component: () => import('@/views/agent/index'),
|
|
|
|
|
meta: {
|
|
|
|
|
requiresAuth: false,
|
|
|
|
|
requireLogin: true,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: 'index',
|
|
|
|
|
name: 'AgentIndex',
|
|
|
|
|
component: () => import('@/views/agent/index'),
|
|
|
|
|
meta: {
|
|
|
|
|
requiresAuth: false,
|
|
|
|
|
requireLogin: true,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
],
|
2025-07-25 10:51:04 +08:00
|
|
|
},
|
2025-07-10 19:05:38 +08:00
|
|
|
];
|
|
|
|
|
|
|
|
|
|
export default COMPONENTS;
|