fix: 订单列表直接使用返回的items,不再单独请求
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -158,14 +158,9 @@ export default {
|
||||
|
||||
const list = res.records || []
|
||||
|
||||
// 加载每个订单的明细
|
||||
// 直接使用订单中的items,不再单独请求
|
||||
for (const order of list) {
|
||||
try {
|
||||
const detail = await orderApi.getOrderDetail(order.orderId)
|
||||
this.$set(this.orderItemsMap, order.orderId, detail.items || [])
|
||||
} catch (e) {
|
||||
console.error(e)
|
||||
}
|
||||
this.$set(this.orderItemsMap, order.orderId, order.items || [])
|
||||
}
|
||||
|
||||
if (this.page === 1) {
|
||||
|
||||
Reference in New Issue
Block a user