Browse Source

refactor(im_chat_info): 将新数据插入到数组头部

- 注释掉使用 concat 方法将新数据追加到数组中的代码- 新增代码将新数据插入到数组头部,以实现倒序排列
master
liutong 12 months ago
parent
commit
27afcc11ac
  1. 3
      pages/common/im_chat_info.vue

3
pages/common/im_chat_info.vue

@ -143,7 +143,8 @@ export default {
return return
} }
this.tableList = this.tableList.concat(res.data.data); // 使 concat // this.tableList = this.tableList.concat(res.data.data); // 使 concat
this.tableList.unshift(...res.data.data); //
console.log('列表',this.tableList) console.log('列表',this.tableList)
this.filteredData.total = res.data.total this.filteredData.total = res.data.total

Loading…
Cancel
Save