diff --git a/pages/index/customer.vue b/pages/index/customer.vue index 4b81e32..f541dbd 100644 --- a/pages/index/customer.vue +++ b/pages/index/customer.vue @@ -118,7 +118,7 @@ }, success: (res) => { this.count = res.data.data - this.tabbarList[3].count = res.data.data + this.tabbarList[3].count = res.data.data || 0 } }) }, diff --git a/pages/index/index.vue b/pages/index/index.vue index bdb7bbd..f020fa6 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -455,7 +455,7 @@ }, success: (res) => { this.count = res.data.data - this.tabbarList[3].count = res.data.data + this.tabbarList[3].count = res.data.data || 0 } }) }, diff --git a/pages/index/learning.vue b/pages/index/learning.vue index 8ef3606..3922d48 100644 --- a/pages/index/learning.vue +++ b/pages/index/learning.vue @@ -104,7 +104,7 @@ }, success: (res) => { this.count = res.data.data - this.tabbarList[3].count = res.data.data + this.tabbarList[3].count = res.data.data || 0 } }) }, diff --git a/pages/index/personal.vue b/pages/index/personal.vue index 9305e07..3b7a66e 100644 --- a/pages/index/personal.vue +++ b/pages/index/personal.vue @@ -131,7 +131,7 @@ }, success: (res) => { this.count = res.data.data - this.tabbarList[3].count = res.data.data + this.tabbarList[3].count = res.data.data || 0 } }) },