Browse Source

bug 修复

lilei 4 năm trước cách đây
mục cha
commit
0f468c847e
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      components/uni-cart-fix/uni-cart-fix.vue

+ 1 - 1
components/uni-cart-fix/uni-cart-fix.vue

@@ -8,7 +8,7 @@
 		export default {
 			computed: {
 				count() {
-					let arr = this.$store.state.vuex_cartList
+					let arr = this.$store.state.vuex_cartList || []
 					let count = 0
 					arr.map(item=>{
 						count = count + item.shoppingCartGoodsList.length