|
|
@@ -138,6 +138,8 @@ export default {
|
|
|
this.count = countArr.reduce((total, item) => {
|
|
|
return total + item.amount;
|
|
|
}, 0);
|
|
|
+ } else {
|
|
|
+ this.count = 0;
|
|
|
}
|
|
|
})
|
|
|
.catch(e => {
|
|
|
@@ -171,6 +173,8 @@ export default {
|
|
|
this.count = countArr.reduce((total, item) => {
|
|
|
return total + item.amount;
|
|
|
}, 0);
|
|
|
+ } else {
|
|
|
+ this.count = 0;
|
|
|
}
|
|
|
})
|
|
|
.catch(e => {
|