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 } })