From edd752e4994a7ed24546465f12f7e49acaa18522 Mon Sep 17 00:00:00 2001 From: syt <854400391@qq.com> Date: Sat, 30 Mar 2024 20:05:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E8=AF=A6=E6=83=85BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/goods-sku-popup/index.vue | 3 ++- pages/goods/components/SkuPopup.vue | 29 +++++++++++++++------------- pages/goods/detail.vue | 15 ++++++++------ pages/user/index.vue | 3 ++- 4 files changed, 29 insertions(+), 21 deletions(-) diff --git a/components/goods-sku-popup/index.vue b/components/goods-sku-popup/index.vue index 5e2b50a..a802bab 100644 --- a/components/goods-sku-popup/index.vue +++ b/components/goods-sku-popup/index.vue @@ -574,7 +574,8 @@ } } // 更新缓存 - goodsCache[that.goodsId] = goodsInfo; + goodsCache[that.goodsId] = goodsInfo; + console.log("goodsCache",goodsCache[that.goodsId]) if (goodsInfo && typeof goodsInfo == 'object' && JSON.stringify(goodsInfo) != '{}') { findGoodsInfoRun = false; that.updateGoodsInfo(goodsInfo); diff --git a/pages/goods/components/SkuPopup.vue b/pages/goods/components/SkuPopup.vue index 3c6e2b5..c0badc2 100644 --- a/pages/goods/components/SkuPopup.vue +++ b/pages/goods/components/SkuPopup.vue @@ -1,5 +1,5 @@