事件队列
} onClick={() => qc.invalidateQueries({ queryKey: ['events'] })}>刷新
-
-
-
- {selectedQueue && (
- <>
-
-
失败任务 · {selectedQueue}
-
-
-
- >
- )}
+
)
}
diff --git a/src/pages/VectorAdmin.tsx b/src/pages/VectorAdmin.tsx
new file mode 100644
index 0000000..1653b02
--- /dev/null
+++ b/src/pages/VectorAdmin.tsx
@@ -0,0 +1,82 @@
+import { useQuery, useQueryClient } from '@tanstack/react-query'
+import { Card, Row, Col, Statistic, Button, Typography, Descriptions, App } from 'antd'
+import { ReloadOutlined, DatabaseOutlined, NodeIndexOutlined } from '@ant-design/icons'
+import { api } from '@/services/http-client'
+
+const { Title } = Typography
+
+export default function VectorAdminPage() {
+ const qc = useQueryClient()
+ const { message } = App.useApp()
+
+ const { data: coll, isLoading: collLoading } = useQuery({
+ queryKey: ['vector', 'collection'],
+ queryFn: (): Promise