Commit d8a94310 authored by 仇晓婷's avatar 仇晓婷

youhua

parent a132a115
......@@ -401,7 +401,7 @@ export default {
if (index > -1) {
this.cartListCount -= value;
this.cartList.splice(index, 1);
if (value == 0) {
if (value == 0 || this.cartList.length == 0) {
this.cartListCount = 0;
}
this.$store.commit("setCart", this.cartList);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment