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

只有界面滚动才会触发 #494

Open
wusuzi opened this issue Jul 18, 2022 · 2 comments
Open

只有界面滚动才会触发 #494

wusuzi opened this issue Jul 18, 2022 · 2 comments

Comments

@wusuzi
Copy link

wusuzi commented Jul 18, 2022

当我重复进到界面时候 图片会不显示

@xujintai123
Copy link

设置observer试下;

Vue.use(VueLazyload, {
    observer: true,
});

@chenweihuan
Copy link

IntersectionObserver 有兼容问题,ios12.1及以下不支持。
而且observer: true配置有降级逻辑,那么就导致了不同版本有着不同表现的问题。

  • ios12.1 及以下:只有界面滚动才会触发
  • ios12.1以上:出现在视图就会触发

加个immediate: true

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