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
7dbdd91b
authored
Sep 27, 2025
by
huanghejian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pref: 防呆设计需要,不允许自定义,API地址优化为下拉选择
parent
d1f590aa
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
1 deletions
+26
-1
web/src/components/table/channels/modals/EditChannelModal.jsx
+26
-1
No files found.
web/src/components/table/channels/modals/EditChannelModal.jsx
View file @
7dbdd91b
...
@@ -1736,7 +1736,8 @@ const EditChannelModal = (props) => {
...
@@ -1736,7 +1736,8 @@ const EditChannelModal = (props) => {
{
inputs
.
type
!==
3
&&
{
inputs
.
type
!==
3
&&
inputs
.
type
!==
8
&&
inputs
.
type
!==
8
&&
inputs
.
type
!==
22
&&
inputs
.
type
!==
22
&&
inputs
.
type
!==
36
&&
(
inputs
.
type
!==
36
&&
inputs
.
type
!==
45
&&
(
<
div
>
<
div
>
<
Form
.
Input
<
Form
.
Input
field=
'base_url'
field=
'base_url'
...
@@ -1788,6 +1789,30 @@ const EditChannelModal = (props) => {
...
@@ -1788,6 +1789,30 @@ const EditChannelModal = (props) => {
/>
/>
</
div
>
</
div
>
)
}
)
}
{
inputs
.
type
===
45
&&
(
<
div
>
<
Form
.
Select
field=
'base_url'
label=
{
t
(
'API地址'
)
}
placeholder=
{
t
(
'请选择API地址'
)
}
onChange=
{
(
value
)
=>
handleInputChange
(
'base_url'
,
value
)
}
optionList=
{
[
{
value
:
'https://ark.cn-beijing.volces.com'
,
label
:
'https://ark.cn-beijing.volces.com'
},
{
value
:
'https://ark.ap-southeast.bytepluses.com'
,
label
:
'https://ark.ap-southeast.bytepluses.com'
}
]
}
defaultValue=
'https://ark.cn-beijing.volces.com'
/>
</
div
>
)
}
</
Card
>
</
Card
>
)
}
)
}
...
...
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