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

运行报错 #150

Open
zhuangfeiyu opened this issue Jun 1, 2022 · 1 comment
Open

运行报错 #150

zhuangfeiyu opened this issue Jun 1, 2022 · 1 comment

Comments

@zhuangfeiyu
Copy link

zhuangfeiyu commented Jun 1, 2022

image
经常会报这个错。这边getAsyncMenus(),值变成了"undefined"。而且有时还会报接口异常。

@renruimin
Copy link

renruimin commented Oct 21, 2022

我也遇到了同样的问题,查看代码发现是smenu的值为undefined导致的,进一步查找发现是https://react-admin-mock.vercel.app/api/menu.js接口报错导致的,应该是mock数据没有接收到,导致页面崩溃。
解决方法:暂时将smenus设置为[]

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

2 participants