Commit 2b16f348 authored by 刘用法's avatar 刘用法

订单列表已完工不更新徽标值

parent ab7c663b
...@@ -192,7 +192,9 @@ ...@@ -192,7 +192,9 @@
// 后台需要返回orderType,防止数据返回延迟期间点击了其他的tab // 后台需要返回orderType,防止数据返回延迟期间点击了其他的tab
if (res.data) { if (res.data) {
self.orderList.push(...res.data.list) self.orderList.push(...res.data.list)
self.list[res.data.orderType].total = res.data.total if (self.list[res.data.orderType]) {
self.list[res.data.orderType].total = res.data.total
}
self.loadStatus = res.data.total > self.orderList.length ? 'loadmore' : 'nomore' self.loadStatus = res.data.total > self.orderList.length ? 'loadmore' : 'nomore'
} }
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment