修改qsstringify数组默认类型

This commit is contained in:
catchonme 2019-10-23 17:34:51 +08:00
parent 70e8decb41
commit f301a0e024
1 changed files with 2 additions and 2 deletions

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()