This commit is contained in:
2026-09-30 14:27:37 +08:00
parent 8398d5ead9
commit 244208c690
12 changed files with 62 additions and 33 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ function overseasUrl(path) {
throw error
}
const value = `/${String(path || '').replace(/^\/+/, '')}`
const normalized = /\/api$/.test(base)
const normalized = /\/(?:api|gateway-api)$/.test(base)
? value.replace(/^\/api(?=\/)/, '')
: value
return `${base}${normalized}`