fix: improve provider switch

This commit is contained in:
Bingxi Zhao (Frank)
2026-04-11 13:00:54 +08:00
parent 4010a33aa3
commit 4799aaeef0

View File

@@ -1030,7 +1030,7 @@ function SettingsPageContent() {
const field = activeService === "search" ? "provider" : "binding";
updateProfileField(field, val);
const match = (providers[activeService] || []).find((p) => p.value === val);
if (match?.base_url && !activeProfile.base_url) {
if (match?.base_url) {
updateProfileField("base_url", match.base_url);
}
}}