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

懒加载的 <LazyImg :url="url" />情况下,切换url,是不是无法生效响应显示相应图片 #44

Open
withyun opened this issue Oct 31, 2023 · 2 comments

Comments

@withyun
Copy link

withyun commented Oct 31, 2023

image

@withyun withyun changed the title 懒加载的 <img :url="url" />情况下,切换url,是不是无法生效响应显示相应图片 懒加载的 <LazyImg :url="url" />情况下,切换url,是不是无法生效响应显示相应图片 Oct 31, 2023
@withyun
Copy link
Author

withyun commented Oct 31, 2023

切换的时候请求新的数据列表渲染,先清空在赋值,图片src会变化。

@heikaimu
Copy link
Owner

heikaimu commented Nov 8, 2023

是的,需要重新给list赋值,我的demo更新了,你可以看下

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