🧬merge: Add a button to copy the selected model in the channel (#1290)

Merge pull request #1290 from JoeyLearnsToCode/feat-copy-models
This commit is contained in:
同語
2025-06-23 23:46:54 +08:00
committed by GitHub
2 changed files with 12 additions and 1 deletions

View File

@@ -428,6 +428,7 @@
"填入基础模型": "Fill in the basic model", "填入基础模型": "Fill in the basic model",
"填入所有模型": "Fill in all models", "填入所有模型": "Fill in all models",
"清除所有模型": "Clear all models", "清除所有模型": "Clear all models",
"复制所有模型": "Copy all models",
"密钥": "Key", "密钥": "Key",
"请输入密钥": "Please enter the key", "请输入密钥": "Please enter the key",
"批量创建": "Batch Create", "批量创建": "Batch Create",

View File

@@ -26,7 +26,7 @@ import {
Card, Card,
Tag, Tag,
} from '@douyinfe/semi-ui'; } from '@douyinfe/semi-ui';
import { getChannelModels } from '../../helpers'; import { getChannelModels, copy } from '../../helpers';
import { import {
IconSave, IconSave,
IconClose, IconClose,
@@ -832,6 +832,16 @@ useEffect(() => {
> >
{t('清除所有模型')} {t('清除所有模型')}
</Button> </Button>
<Button
type='tertiary'
onClick={() => {
copy(inputs.models.join(','));
}}
size="large"
className="!rounded-lg"
>
{t('复制所有模型')}
</Button>
</div> </div>
<div> <div>