We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d14e543 commit 359cf70Copy full SHA for 359cf70
templates/vue-common/utils/fetch.js
@@ -22,11 +22,12 @@ export default function(id, options = {}) {
22
options.headers.set('Content-Type', MIME_TYPE);
23
24
if (options.params) {
25
- let queryString = Object.keys(options.params)
+ const params = normalize(options.params);
26
+ let queryString = Object.keys(params)
27
.map(key =>
- Array.isArray(options.params[key])
28
- ? makeParamArray(key, options.params[key])
29
- : `${key}=${options.params[key]}`
+ Array.isArray(params[key])
+ ? makeParamArray(key, params[key])
30
+ : `${key}=${params[key]}`
31
)
32
.join('&');
33
id = `${id}?${queryString}`;
0 commit comments