From e678233c0effb34110489e4812efa6f9ff09a117 Mon Sep 17 00:00:00 2001 From: ch Date: Wed, 27 Apr 2022 14:16:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E4=BB=98=E6=89=93=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/cart/components/PageCtx.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) || []; }, /**