mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-04-06 03:59:53 +08:00
feat: request plugin 接口前缀逻辑优化
This commit is contained in:
parent
06da4a2339
commit
e3bf8fdb0f
@ -88,6 +88,8 @@ function getRequestInstance() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function handleApiPathBase(url, options = {}) {
|
function handleApiPathBase(url, options = {}) {
|
||||||
|
if (url.startsWith('http')) return url;
|
||||||
|
|
||||||
if (options.base) {
|
if (options.base) {
|
||||||
return `${options.base}${url}`;
|
return `${options.base}${url}`;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user