Vue笔记

书中人 2023年06月30日 812次浏览

v-for 后端实时返回不刷新问题处理

  • 先置空对象 this.dataList = [];
  • 重新渲染,再次加载 this.$nextTick(()=>{this.dataList = res.data;})