瀏覽代碼

fix: :bug: corrigir estoque zerado na listagem da loja

Refs: 868kf24hh
joykepler 6 天之前
父節點
當前提交
70ca334984
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/pages/loja/LojaPage.vue

+ 1 - 1
src/pages/loja/LojaPage.vue

@@ -276,7 +276,7 @@ onMounted(async () => {
 
     itemsData.forEach((item) => {
       if (item.variations?.length) {
-        selectedVariations.value[item.id] = item.variations ?? item.variations[0];
+        selectedVariations.value[item.id] = item.variations[0];
       }
     });
   } catch (e) {