vue axios 报错 Uncaught (in promise) TypeError: Cannot convert undefined or null to object at Function.keys (<anonymous>) at mergeConfig (axios.js:1308)
问题:在 VUE 3.0.4 版本,使用 axios 时报错
Uncaught (in promise) TypeError: Cannot convert undefined or null to object at Function.keys (<anonymous>) at mergeConfig (axios.js:1308)
解决方案:
重新安装 axios:
npm install axios@0.21 --save
okay~