优化
This commit is contained in:
+1
-1
@@ -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}`
|
||||
|
||||
Reference in New Issue
Block a user