当前位置:网站首页>报错:cannot read poperties of undefined(reading ‘then‘)

报错:cannot read poperties of undefined(reading ‘then‘)

2022-07-27 04:36:00 博客zhu虎康

报错

在vue做项目时,出现了如下错误

cannot read poperties of undefined(reading 'then')

在这里插入图片描述

报错分析

报该错误时因为在使用axios的时候没有加return进行返回,因此在加载页面调用的时候,出现了该处报错,

解决方案

在这里插入图片描述

原网站

版权声明
本文为[博客zhu虎康]所创,转载请带上原文链接,感谢
https://blog.csdn.net/qq_53810245/article/details/125874267