From 9d2c07a11f260ce8f109c5cf273c32084ff52f79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BB=91=E7=A8=BD=E5=88=98?= <1073236926@qq.com> Date: Sat, 27 Jun 2020 15:23:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=94=AE=E5=90=8E=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E7=8A=B6=E6=80=81=E6=98=BE=E7=A4=BA=EF=BC=8C=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E8=AE=A2=E5=8D=95=E6=A0=B9=E6=8D=AEid=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- litemall-admin/src/views/mall/order.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/litemall-admin/src/views/mall/order.vue b/litemall-admin/src/views/mall/order.vue index 9ad57210..b6974d7a 100644 --- a/litemall-admin/src/views/mall/order.vue +++ b/litemall-admin/src/views/mall/order.vue @@ -261,8 +261,11 @@ export default { if(this.listQuery.orderId){ detailOrder(this.listQuery.orderId).then(response => { this.list = []; - this.list.push(response.data.data.order) - this.listLoading = false + if(response.data.data.order){ + this.list.push(response.data.data.order); + this.total = 1; + this.listLoading = false + } }).catch(() => { this.list = [] this.total = 0