Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

发现一个Bug #20

Open
LightLore opened this issue Apr 12, 2021 · 0 comments
Open

发现一个Bug #20

LightLore opened this issue Apr 12, 2021 · 0 comments

Comments

@LightLore
Copy link

LightLore commented Apr 12, 2021

你好,我发现了一个程序中存在的Bug:
55dba41fd0501d5aea2461476540dc1
我在测试这个小程序的时候,发现点击底部的“我的”标签后,控制台会报错,错误信息为“TypeError: Cannot read property 'forEach' of undefined”。除了点击标签以外,点进预约记录并返回也会有一样的报错信息。


好像知道问题出在哪里了,
image
这块代码里面,对应失败时的回调操作会传一个false作为参数,但在对应的方法这里:
image
试图从传入的参数中读取list字段,这会在请求失败时得到一个undefined的结果值,因此后续执行forEach方法时就会报出上述的错误来。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant