feat: support custom base url for channels

This commit is contained in:
JustSong
2023-06-20 22:32:56 +08:00
parent 634099e592
commit e398f470a1
3 changed files with 16 additions and 8 deletions

View File

@@ -177,6 +177,20 @@ const EditChannel = () => {
</Form.Field>
)
}
{
inputs.type !== 3 && inputs.type !== 8 && (
<Form.Field>
<Form.Input
label='Base URL'
name='base_url'
placeholder={'请输入自定义 Base URL格式为https://domain.com可不填不填使用渠道默认值'}
onChange={handleInputChange}
value={inputs.base_url}
autoComplete='new-password'
/>
</Form.Field>
)
}
<Form.Field>
<Form.Input
label='名称'