const { data } = await createVerificationMaterialApi({
file: info.file,
name: 'file',
filename: info.file.name,
data: { ids },
})//这样传参数,网络里看发的请求会是如下样子,这样debug不到代码里
正确方法
const { data } = await createVerificationMaterialApi({
file: info.file,
name: 'file',
filename: info.file.name,
data: { ids: JSON.stringify(ids) },
})