diff --git a/pages/cart/components/PageCtx.vue b/pages/cart/components/PageCtx.vue index 2ef6a8a..467d3b1 100644 --- a/pages/cart/components/PageCtx.vue +++ b/pages/cart/components/PageCtx.vue @@ -146,7 +146,7 @@ export default { this.getCartList(); this.isLoading = false; // 获取缓存中的选中记录 - this.checkedIds = uni.getStorageSync(CartIdsIndex); + this.checkedIds = uni.getStorageSync(CartIdsIndex) || []; }, /**