feat: support specific default api version now (#57)

This commit is contained in:
JustSong
2023-05-13 12:53:57 +08:00
parent 74c1ba7cbc
commit 83e86b9f8a
4 changed files with 18 additions and 2 deletions

View File

@@ -13,7 +13,8 @@ const EditChannel = () => {
name: '',
type: 1,
key: '',
base_url: ''
base_url: '',
other: ''
};
const [inputs, setInputs] = useState(originInputs);
const handleInputChange = (e, { name, value }) => {
@@ -92,6 +93,16 @@ const EditChannel = () => {
autoComplete='new-password'
/>
</Form.Field>
<Form.Field>
<Form.Input
label='默认 API 版本'
name='other'
placeholder={'请输入默认 API 版本例如2023-03-15-preview该配置可以被实际的请求查询参数所覆盖'}
onChange={handleInputChange}
value={inputs.other}
autoComplete='new-password'
/>
</Form.Field>
</>
)
}