-
-
Notifications
You must be signed in to change notification settings - Fork 225
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
ImagePreview 组件异步获取数据报错 #612
Labels
🐞 bug
漏洞
Comments
|
的确有问题,感谢反馈,我们会尽快修复。 |
JeromeLin
added a commit
that referenced
this issue
Apr 24, 2021
fix: error in dynamic image data. fix #612
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
默认组件images是一个空数组。在数据加载的时候后端是没有图片数据返回回来的时候给了一个空数组,组件直接报错images.forEach is not a funtion. 或有时报 Cannot read property 'loaded' 希望处理一下空数组的情况。后端获取到数据后再渲染进行加载图片的预处理操作。
code:
You can get this information from
package.json
and your device.The text was updated successfully, but these errors were encountered: