mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-04-19 09:18:38 +00:00
fix: set volcengine default url
This commit is contained in:
@@ -455,6 +455,14 @@ const EditChannelModal = (props) => {
|
|||||||
data.is_enterprise_account = false;
|
data.is_enterprise_account = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (
|
||||||
|
data.type === 45 &&
|
||||||
|
(!data.base_url ||
|
||||||
|
(typeof data.base_url === 'string' && data.base_url.trim() === ''))
|
||||||
|
) {
|
||||||
|
data.base_url = 'https://ark.cn-beijing.volces.com';
|
||||||
|
}
|
||||||
|
|
||||||
setInputs(data);
|
setInputs(data);
|
||||||
if (formApiRef.current) {
|
if (formApiRef.current) {
|
||||||
formApiRef.current.setValues(data);
|
formApiRef.current.setValues(data);
|
||||||
|
|||||||
Reference in New Issue
Block a user