fix: 订单列表直接使用返回的items,不再单独请求
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Agent
2026-04-01 16:39:54 +00:00
parent b62c62c6e0
commit d932d26830

View File

@@ -158,14 +158,9 @@ export default {
const list = res.records || [] const list = res.records || []
// 加载每个订单的明细 // 直接使用订单中的items不再单独请求
for (const order of list) { for (const order of list) {
try { this.$set(this.orderItemsMap, order.orderId, order.items || [])
const detail = await orderApi.getOrderDetail(order.orderId)
this.$set(this.orderItemsMap, order.orderId, detail.items || [])
} catch (e) {
console.error(e)
}
} }
if (this.page === 1) { if (this.page === 1) {