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

默认图片加载失败 #22

Open
dolphin0618 opened this issue Dec 13, 2018 · 2 comments
Open

默认图片加载失败 #22

dolphin0618 opened this issue Dec 13, 2018 · 2 comments

Comments

@dolphin0618
Copy link

在你的vue-lazyload-img/src/lib/index.ts文件中
el.src = 'data:image/gifbase64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=='
你那里会执行onload函数么?
我把它修改成如下地址(gif后面加个;号),it's ok
el.src = 'data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=='

@wormsan
Copy link
Owner

wormsan commented Dec 28, 2018

一定是在某个平行世界中的我粘贴过来的时候丢掉了一个分号=。=,这两天再发一个版本修复之

@coderdiaz
Copy link

@dolphin0618 If you are using mirage with CloudFlare for optimize images, this affect to img elements for this reason the image is parsed to base64.

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

3 participants