mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-03-30 00:46:42 +00:00
Merge pull request #3066 from seefs001/fix/aws-header-override
Fix/aws header override
This commit is contained in:
@@ -759,6 +759,10 @@ const EditChannelModal = (props) => {
|
||||
}
|
||||
};
|
||||
|
||||
const clearParamOverride = () => {
|
||||
handleInputChange('param_override', '');
|
||||
};
|
||||
|
||||
const loadChannel = async () => {
|
||||
setLoading(true);
|
||||
let res = await API.get(`/api/channel/${channelId}`);
|
||||
@@ -3356,6 +3360,13 @@ const EditChannelModal = (props) => {
|
||||
>
|
||||
{t('填充旧模板')}
|
||||
</Button>
|
||||
<Button
|
||||
size='small'
|
||||
type='tertiary'
|
||||
onClick={clearParamOverride}
|
||||
>
|
||||
{t('清空')}
|
||||
</Button>
|
||||
</Space>
|
||||
</div>
|
||||
<Text type='tertiary' size='small'>
|
||||
|
||||
Reference in New Issue
Block a user