From 5708896d68d2dc228c31050c04faac804b9f7e06 Mon Sep 17 00:00:00 2001 From: nyoung <12190070+nyoungo@user.noreply.gitee.com> Date: Sat, 24 Aug 2024 09:44:45 +0800 Subject: [PATCH] 1 --- pages/Detain/Detain.vue | 4 ++-- pages/my/carlist.vue | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pages/Detain/Detain.vue b/pages/Detain/Detain.vue index 6bb8a3f..dcc325e 100644 --- a/pages/Detain/Detain.vue +++ b/pages/Detain/Detain.vue @@ -196,7 +196,7 @@ } }).then((res) => { if (res.code == 200) { - this.one = res.total + this.one = res.total || 0 } }) request({ @@ -210,7 +210,7 @@ } }).then((res) => { if (res.code == 200) { - this.two = res.total + this.two = res.total || 0 } }) diff --git a/pages/my/carlist.vue b/pages/my/carlist.vue index c06c209..f872b1a 100644 --- a/pages/my/carlist.vue +++ b/pages/my/carlist.vue @@ -174,7 +174,7 @@ }).then((res) => { if (res.code == 200) { - this.one = res.total + this.one = res.total || 0 } }) @@ -190,7 +190,7 @@ }).then((res) => { if (res.code == 200) { - this.two = res.total + this.two = res.total || 0 } }) @@ -206,7 +206,7 @@ }).then((res) => { if (res.code == 200) { - this.three = res.total + this.three = res.total || 0 } })