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

遇到404图片,预览失效 #73

Open
WangSenkai opened this issue Nov 2, 2019 · 1 comment
Open

遇到404图片,预览失效 #73

WangSenkai opened this issue Nov 2, 2019 · 1 comment

Comments

@WangSenkai
Copy link

只要遇到404图片,就会导致图片预览功能失效,请问有什么解决办法呢?

@xiaohaiH
Copy link

我是这样解决的, 在 img 上监听 error 时间, 失败时改写了 img.src(给了一个默认图片地址)

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