fix: show cluster in table

This commit is contained in:
jialin
2026-05-26 23:02:28 +08:00
committed by jialin
parent 2f04e01f4f
commit 1878753cde
2 changed files with 24 additions and 1 deletions
+12
View File
@@ -1,11 +1,13 @@
import { PageAction } from '@/config';
import { PaginationKey, TABLE_SORT_DIRECTIONS } from '@/config/settings';
import useTableFetch from '@/hooks/use-table-fetch';
import { useQueryClusterList } from '@/pages/cluster-management/services/use-query-cluster-list';
import { DeleteModal, FilterBar, IconFont, NoResult } from '@gpustack/core-ui';
import { useIntl } from '@umijs/max';
import { useMemoizedFn } from 'ahooks';
import { ConfigProvider, message, Modal, Table } from 'antd';
import _ from 'lodash';
import { useEffect } from 'react';
import PageBox from '../../_components/page-box';
import {
deleteGPUServiceInstance,
@@ -66,6 +68,15 @@ const GPUService: React.FC = () => {
closeViewEventsModal,
openViewEventsModalStatus
} = useViewEvents();
const {
fetchClusterList,
cancelRequest: cancelClusterRequest,
clusterList
} = useQueryClusterList();
useEffect(() => {
fetchClusterList({ page: -1 });
}, []);
const handleModalOk = async (data: FormData) => {
try {
@@ -142,6 +153,7 @@ const GPUService: React.FC = () => {
const columns = useInstancesColumns({
handleSelect,
clusterList,
sortOrder
});