fix: 路径问题

This commit is contained in:
Gavan
2025-07-24 20:07:27 +08:00
parent ffc6a35bfc
commit e8a77ec5f5
8 changed files with 6 additions and 6 deletions

View File

@@ -8,7 +8,7 @@ const ADMIN_BREADCRUMB_MAP: Record<string, { title: string; to: string }> = {
chat: { title: '对话记录', to: '/chat' },
completion: { title: '补全记录', to: '/completion' },
model: { title: '模型管理', to: '/model' },
'user-management': { title: '成员管理', to: '/user-management' },
'member-management': { title: '成员管理', to: '/member-management' },
admin: { title: '管理员', to: '/admin' },
};

View File

@@ -51,8 +51,8 @@ const ADMIN_MENUS = [
},
{
label: '成员管理',
value: '/user-management',
pathname: 'user-management',
value: '/member-management',
pathname: 'member-management',
icon: 'icon-yonghuguanli1',
show: true,
disabled: false,

View File

@@ -32,7 +32,7 @@ const Dashboard = LazyLoadable(lazy(() => import('@/pages/dashboard')));
const Chat = LazyLoadable(lazy(() => import('@/pages/chat')));
const Completion = LazyLoadable(lazy(() => import('@/pages/completion')));
const Model = LazyLoadable(lazy(() => import('@/pages/model')));
const User = LazyLoadable(lazy(() => import('@/pages/user-management')));
const MemberManage = LazyLoadable(lazy(() => import('@/pages/memberManage')));
const Admin = LazyLoadable(lazy(() => import('@/pages/admin')));
const Invite = LazyLoadable(lazy(() => import('@/pages/invite')));
const Auth = LazyLoadable(lazy(() => import('@/pages/auth')));
@@ -79,8 +79,8 @@ const routerConfig = [
element: <Model />,
},
{
path: 'user-management',
element: <User />,
path: 'member-management',
element: <MemberManage />,
},
{
path: 'admin',