fix: knowledge bases under existing 知识库管理 menu
All checks were successful
Deploy Admin Frontend / build-and-deploy (push) Successful in 8s

This commit is contained in:
WangDL 2026-05-22 16:02:51 +08:00
parent 8f1d0eecef
commit 95d8d3cbb4
2 changed files with 1 additions and 2 deletions

View File

@ -71,7 +71,7 @@ function App() {
</PermissionGuard>
}
/>
<Route path="knowledge/bases" element={<Placeholder title="知识库列表" />} />
<Route path="knowledge/bases" element={<Suspense fallback={<PageLoading />}><KnowledgeBasesPage /></Suspense>} />
<Route path="knowledge/sources" element={<Placeholder title="知识源列表" />} />
<Route path="imports" element={<Placeholder title="文档导入" />} />
<Route path="files" element={<Placeholder title="文件与 COS" />} />

View File

@ -44,7 +44,6 @@ export const adminMenuItems: AdminMenuItem[] = [
{ path: '/imports', name: '文档导入', icon: <ImportOutlined /> },
{ path: '/files', name: '文件与 COS', icon: <FileOutlined /> },
{ path: '/settings', name: '系统配置', icon: <SettingOutlined />, requiredRole: 'ADMIN' },
{ path: '/knowledge/bases', name: '知识库列表', icon: <BookOutlined /> },
{ path: '/billing', name: 'API 用量', icon: <DollarOutlined />, requiredRole: 'SUPER_ADMIN' },
{ path: '/git', name: '代码仓库', icon: <CodeOutlined /> },
{ path: '/servers', name: '服务器运维', icon: <CloudServerOutlined />, requiredRole: 'SUPER_ADMIN' },