feat: request plugin 接口前缀逻辑优化

This commit is contained in:
bac-joker 2021-03-31 09:50:37 +08:00
parent 06da4a2339
commit e3bf8fdb0f

View File

@ -88,6 +88,8 @@ function getRequestInstance() {
}
function handleApiPathBase(url, options = {}) {
if (url.startsWith('http')) return url;
if (options.base) {
return `${options.base}${url}`;
}