原文:vue axios 报错 Uncaught (in promise) TypeError: Cannot convert undefined or null to object at Function.keys () at mergeConfig (axios.js:1308)

问题:在 VUE . . 版本,使用 axios 时报错Uncaught in promise TypeError: Cannot convert undefined or null to object at Function.keys lt anonymous gt at mergeConfig axios.js: 解决方案: 重新安装 axios: okay ...

2021-12-15 18:16 0 2165 推荐指数:

查看详情

TypeErrorCannot convert undefined or null to object

分享一个今天遇到的一个bug , 希望对你也有用。 1、Object.keys()中传错了参数 2、由于undefinednull无法转成对象,所以如果它们做为Object.assign()的参数(只有一个参数),也会报错 ...

Sat Aug 10 02:00:00 CST 2019 0 6912
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM