🧬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:
@@ -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",
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user