忘了处理 api 路径中的变量

This commit is contained in:
liaoxuezhi 2019-12-09 21:29:13 +08:00
parent 8ef334af95
commit c0ce3beb8a

View File

@ -75,9 +75,11 @@ export function buildApi(
api.url.substring(idx + 1, ~hashIdx ? hashIdx : undefined)
);
api.url =
api.url.substring(0, idx + 1) +
tokenize(api.url.substring(0, idx + 1), data, '| url_encode') +
qsstringify(dataMapping(params, data)) +
(~hashIdx ? api.url.substring(hashIdx) : '');
} else {
api.url = tokenize(api.url, data, '| url_encode');
}
if (ignoreData) {