当前位置:网站首页>TypeError: Cannot read properties of undefined (reading ‘then‘)
TypeError: Cannot read properties of undefined (reading ‘then‘)
2022-07-29 04:21:00 【奇奇怪怪的土豆饼】

导致这个原因报错,原因是在与:

封装该api时并没有返回值,在调用该接口时导致没有返回值,then前面的内容为false。
修改这个bug的方法也很简单,直接将花括号变成圆括号即可,变成圆括号后就有放回值。

就不会产生报错了。
大家写代码的时候还是要仔细哦~~不要像小编这么马虎o(╥﹏╥)o
边栏推荐
- MySQL gets the maximum value record by field grouping
- Deep learning training strategy -- warming up the learning rate
- Dabao and Erbao
- The data source is SQL server. I want to configure the incremental data of the last two days of the date field updatedate to add
- Locally call tensorboard and Jupiter notebook on the server (using mobaxterm)
- Jenkins 参数化构建中 各参数介绍与示例
- 信号处理中的反傅里叶变换(IFFT)原理
- Rhel8 patch package production
- Won't you insist on 71 days? List sorting
- Won't you just stick to 62 days? Sum of words
猜你喜欢

Don't stick to it for 68 days. Baboons eat bananas

为什么opengauss启动的时候这么多的unknown?

15.federation

Introduction and examples of parameters in Jenkins parametric construction

Common components of solder pad (2021.4.6)

Why are there so many unknowns when opengauss starts?

Definition and implementation of stack and queue (detailed)

通过js来实现一元二次方程的效果,输入a,b,c系数后可计算出x1和x2的值

Won't you just stick to 69 days? Merge range

Class starts! See how smardaten decomposes complex business scenarios
随机推荐
9. Delay queue
leetcode 686.重复叠加字符串 KMP方法(C语言实现)
BIO、NIO、AIO的区别和原理
No, just stick to it for 59 days
信号处理中的反傅里叶变换(IFFT)原理
不会就坚持62天吧 单词之和
Why is it necessary to scale the attention before softmax (why divide by the square root of d_k)
Back propagation process of manual BP neural network
LeetCode_ Stack topics
visio画网格
The function "postgis_version" cannot be found when installing PostGIS
C language: summary of consortium knowledge points
Interview notes of a company
Down sampling and up sampling
Is there any way for Youxuan database to check the log volume that the primary cluster transmits to the standby cluster every day?
不会就坚持69天吧 合并区间
Shielding ODBC load balancing mode in gbase 8A special scenarios?
Implementation of jump connection of RESNET (pytorch)
Introduction and examples of parameters in Jenkins parametric construction
Fu Yingna: Yuan universe is the new generation of Internet!