mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-11-07 01:33:43 +08:00
fix: auto fill apiURL when platform changed for ApiKey add page
This commit is contained in:
@@ -261,10 +261,10 @@ const changePlatform = () => {
|
||||
}
|
||||
}
|
||||
if (platform !== null) {
|
||||
if (item.value.type === "chat") {
|
||||
item.value.api_url = platform.api_url
|
||||
} else if (platform.img_url) {
|
||||
if (item.value.type === "img" && platform.img_url) {
|
||||
item.value.api_url = platform.img_url
|
||||
} else {
|
||||
item.value.api_url = platform.api_url
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user