fix: avoid overwriting the provider.option.baseURL (#880)

This commit is contained in:
zWing
2025-07-12 06:01:28 +08:00
committed by GitHub
parent 0cd4bb22d0
commit c74a8a566d
+1 -1
View File
@@ -234,7 +234,7 @@ export namespace Provider {
if (!provider) {
const info = database[id]
if (!info) return
if (info.api) options["baseURL"] = info.api
if (info.api && !options["baseURL"]) options["baseURL"] = info.api
providers[id] = {
source,
info,