Merge pull request #299 from catchonme/master

修改qsstringify数组默认类型
This commit is contained in:
catchme 2019-10-23 17:43:26 +08:00 committed by GitHub
commit 8b9a1b6355

View File

@ -780,7 +780,7 @@ export function hasFile(object: any): boolean {
export function qsstringify(
data: any,
options: any = {
arrayFormat: 'brackets',
arrayFormat: 'indices',
encodeValuesOnly: true
}
) {
@ -790,7 +790,7 @@ export function qsstringify(
export function object2formData(
data: any,
options: any = {
arrayFormat: 'brackets',
arrayFormat: 'indices',
encodeValuesOnly: true
},
fd: FormData = new FormData()