fix(ui): 完善界面交互与开发配置

This commit is contained in:
zhanjunhao
2026-11-18 19:09:00 +08:00
parent 4147fac38f
commit 28fb53ceae
87 changed files with 2212 additions and 2823 deletions
+15 -24
View File
@@ -19,16 +19,9 @@ For commercial licensing, please contact support@quantumnous.com
import React, { useCallback, useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
import {
Alert,
Button,
Empty,
Popconfirm,
Space,
Table,
Tag,
Typography,
} from 'antd';
import { Button, Empty, Popconfirm, Space, Tag, Typography } from 'antd';
import { Table } from '@/components/ui';
import { ConsoleAlert as Alert } from '../console/ConsolePrimitives';
import { Plus } from '../common/icons/ActionIcons';
import { copy, showError, showSuccess } from '../../helpers';
import { deleteProfile, listCandidateModels, listProfiles } from './api';
@@ -230,20 +223,18 @@ const ProfileTable = ({ mode, orgId, canWrite = true, emptyHint }) => {
dataSource={list}
pagination={false}
scroll={{ x: 'max-content' }}
locale={{
emptyText: (
<Empty
image={Empty.PRESENTED_IMAGE_SIMPLE}
description={t('还没有智能路由集合')}
>
{canWrite && (
<Button type='primary' onClick={() => setEditing({})}>
{t('新建集合')}
</Button>
)}
</Empty>
),
}}
empty={
<Empty
image={Empty.PRESENTED_IMAGE_SIMPLE}
description={t('还没有智能路由集合')}
>
{canWrite && (
<Button type='primary' onClick={() => setEditing({})}>
{t('新建集合')}
</Button>
)}
</Empty>
}
/>
)}
<ProfileEditor