当前位置:网站首页>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
边栏推荐
- C language: summary of consortium knowledge points
- Locally call tensorboard and Jupiter notebook on the server (using mobaxterm)
- Kotlin's list, map, set and other collection classes do not specify types
- Do you have a boss to help me check whether the parameter configuration of the Flink SQL connection Kafka authentication Kerberos is wrong
- 不会就坚持62天吧 单词之和
- Object detection: object_ Detection API +ssd target detection model
- C语言:浅谈各种复杂的声明
- The principle of inverse Fourier transform (IFFT) in signal processing
- 9.延迟队列
- Not for 63 days. The biggest XOR
猜你喜欢

11.备份交换机

Visio draw grid

你真的会写Restful API吗?

Machine vision series 3:vs2019 opencv environment configuration

Definition and implementation of stack and queue (detailed)

不会就坚持69天吧 合并区间

Object detection: object_ Detection API +ssd target detection model

6. Pytest generates an allure Report

How to solve the problem of store ranking?

Don't insist on 66 days. Weight generates random numbers
随机推荐
不会就坚持70天吧 数组中第k大的数
信号处理中的反傅里叶变换(IFFT)原理
"Weilai Cup" 2022 Niuke summer multi school training camp 1 J serval and essay (heuristic merger)
Methods of using multiple deformations on an element
Semantic segmentation correlation
Rhel8 patch package production
Opengauss pre check installation
通过js来实现一元二次方程的效果,输入a,b,c系数后可计算出x1和x2的值
9. Delay queue
Fuzzy query of SQL
SVG--loading动画
Why is it necessary to scale the attention before softmax (why divide by the square root of d_k)
Introduction and examples of parameters in Jenkins parametric construction
Won't you just stick to 62 days? Sum of words
Is there any way for Youxuan database to check the log volume that the primary cluster transmits to the standby cluster every day?
No, just stick to it for 59 days
Not for 58 days. Implement prefix tree
[kvm] install KVM
Locally call tensorboard and Jupiter notebook on the server (using mobaxterm)
Can you really write restful API?