mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-17 13:57:10 +00:00
修
This commit is contained in:
parent
b67950c7ea
commit
454bdd1d81
1 changed files with 29 additions and 19 deletions
|
|
@ -590,25 +590,35 @@ export function supportGuoba () {
|
||||||
component: 'Divider'
|
component: 'Divider'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'geminiKey',
|
field: 'geminiKey',
|
||||||
label: 'API密钥',
|
label: 'API密钥',
|
||||||
bottomHelpMessage: '前往https://makersuite.google.com/app/apikey获取',
|
bottomHelpMessage: '前往https://makersuite.google.com/app/apikey获取',
|
||||||
component: 'GTags',
|
component: 'GTags',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
placeholder: '请输入您的 API 密钥',
|
placeholder: '点击添加按钮输入 API 密钥',
|
||||||
allowAdd: true,
|
allowAdd: true,
|
||||||
allowDel: true,
|
allowDel: true,
|
||||||
showPrompt: true,
|
showPrompt: true,
|
||||||
promptProps: {
|
promptProps: {
|
||||||
content: '请填写您的 API 密钥',
|
content: '添加 Gemini API Key',
|
||||||
placeholder: '请输入 API 密钥',
|
placeholder: 'AIza...',
|
||||||
okText: '添加'
|
okText: '确认添加',
|
||||||
},
|
inputType: 'password'
|
||||||
valueParser: (value) => {
|
},
|
||||||
if (!value) return [];
|
// 将字符串转换为数组显示
|
||||||
return value.split(',').filter(Boolean);
|
valueParser: (value) => {
|
||||||
},
|
if (!value) return [];
|
||||||
},
|
return typeof value === 'string' ? value.split(',') : value;
|
||||||
|
},
|
||||||
|
// 将数组转换回逗号分隔的字符串
|
||||||
|
valueFormatter: (value) => {
|
||||||
|
if (!value) return '';
|
||||||
|
return Array.isArray(value) ? value.join(',') : value;
|
||||||
|
},
|
||||||
|
style: {
|
||||||
|
width: '100%'
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'geminiModel',
|
field: 'geminiModel',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue