当页面调用接口时传参出现复杂参数时,会出现Property referenced in indexed property path is neither an array nor a List nor a Map错误。遇到此错误时,可将复杂信息转为json字符串后,后端代码再进行处理。如
data['exportFields'] = JSON.stringify(formData);
当页面调用接口时传参出现复杂参数时,会出现Property referenced in indexed property path is neither an array nor a List nor a Map错误。遇到此错误时,可将复杂信息转为json字符串后,后端代码再进行处理。如
data['exportFields'] = JSON.stringify(formData);