This commit is contained in:
dengqichen 2024-12-26 16:00:09 +08:00
parent ed7f012142
commit ab3330fe95
2 changed files with 2 additions and 5 deletions

View File

@ -113,7 +113,7 @@ const ProjectGroupList: React.FC = () => {
<Tooltip title="项目数量"> <Tooltip title="项目数量">
<Space> <Space>
<TeamOutlined/> <TeamOutlined/>
{record.applications?.length || 0} {record?.totalApplications || 0}
</Space> </Space>
</Tooltip> </Tooltip>
), ),

View File

@ -1,6 +1,4 @@
import {BaseResponse, BaseRequest, BaseQuery} from '@/types/base'; import {BaseResponse, BaseRequest, BaseQuery} from '@/types/base';
import {Environment} from '../../Environment/List/types';
import {Application} from "@/pages/Deploy/Application/List/types";
export enum ProjectGroupTypeEnum { export enum ProjectGroupTypeEnum {
PRODUCT = 'PRODUCT', PRODUCT = 'PRODUCT',
@ -15,8 +13,7 @@ export interface ProjectGroup extends BaseResponse {
projectGroupName: string; projectGroupName: string;
projectGroupDesc?: string; projectGroupDesc?: string;
enabled: boolean; enabled: boolean;
environments: Environment[]; totalApplications: number;
applications: Application[];
sort: number; sort: number;
} }