为了账号安全,请及时绑定邮箱和手机立即绑定

vue 懒加载插件 图片不更新

vue 懒加载插件 图片不更新

ibeautiful 2018-11-13 17:30:42
使用了这两个插件lazy-load-imgvue-lazy-load-img当有新数据替换掉原有的goodsList后,懒加载的图片不变,不知道怎么处理<div v-for="item in goodsList">    <vue-lazy-load-img         mode="diy"         :time="50"         :complete="true"         :position="{ top: 0, right: 0, bottom: 0, left: 0 }"         :diy="{ backgroundSize: 'cover', backgroundRepeat: 'no-repeat', backgroundPosition: 'center center' }"        @before="before"         @success="success"         @error="error">        <img             :src="'../image/load-img.png'"             :data-src="item.thumb_img">    </vue-lazy-load-img></div>                        <script src="../script/lazy-load-img.js"></script><script src="../script/vue-lazy-load-img.js"></script>data: {    goodsList: []}
查看完整描述

1 回答

  • 1 回答
  • 0 关注
  • 703 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号