Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
new-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
50a2c2c5
authored
Jul 23, 2025
by
CaIon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: support multi-key mode
parent
6ddeab2f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
web/src/components/table/channels/modals/EditChannelModal.jsx
+14
-14
No files found.
web/src/components/table/channels/modals/EditChannelModal.jsx
View file @
50a2c2c5
...
...
@@ -704,20 +704,20 @@ const EditChannelModal = (props) => {
}
}
}
>
{
t
(
'批量创建'
)
}
</
Checkbox
>
{
/*{batch && (*/
}
{
/* <Checkbox disabled={isEdit} checked={multiToSingle} onChange={() => {*/
}
{
/* setMultiToSingle(prev => !prev);*/
}
{
/* setInputs(prev => {*/
}
{
/* const newInputs = { ...prev };*/
}
{
/* if (!multiToSingle) {*/
}
{
/* newInputs.multi_key_mode = multiKeyMode;*/
}
{
/* } else {*/
}
{
/* delete newInputs.multi_key_mode;*/
}
{
/* }*/
}
{
/* return newInputs;*/
}
{
/* });*/
}
{
/* }}>{t('密钥聚合模式')}</Checkbox>*/
}
{
/*)}*/
}
{
batch
&&
(
<
Checkbox
disabled=
{
isEdit
}
checked=
{
multiToSingle
}
onChange=
{
()
=>
{
setMultiToSingle
(
prev
=>
!
prev
);
setInputs
(
prev
=>
{
const
newInputs
=
{
...
prev
};
if
(
!
multiToSingle
)
{
newInputs
.
multi_key_mode
=
multiKeyMode
;
}
else
{
delete
newInputs
.
multi_key_mode
;
}
return
newInputs
;
});
}
}
>
{
t
(
'密钥聚合模式'
)
}
</
Checkbox
>
)
}
</
Space
>
)
:
null
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment