mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 03:58:07 +08:00
Merge pull request #3952 from 2betop/chore-api4
chore: api 左侧路径上获取的数据有可能已经包含了问号所以得动态检测
This commit is contained in:
commit
485a22fe60
@ -144,8 +144,10 @@ export function buildApi(
|
||||
}
|
||||
});
|
||||
|
||||
const left = replaceExpression(url.substring(0, idx), 'raw', '');
|
||||
api.url =
|
||||
replaceExpression(url.substring(0, idx + 1), 'raw', '') +
|
||||
left +
|
||||
(~left.indexOf('?') ? '&' : '?') +
|
||||
qsstringify(
|
||||
(api.query = dataMapping(params, data, undefined, api.convertKeyToPath))
|
||||
) +
|
||||
|
Loading…
Reference in New Issue
Block a user