mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-04 21:08:55 +08:00
忘了处理 api 路径中的变量
This commit is contained in:
parent
8ef334af95
commit
c0ce3beb8a
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user