Handy_Cao 10 mēneši atpakaļ
vecāks
revīzija
8bff5d6181
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      src/stores/modules/goodscollection.ts

+ 1 - 1
src/stores/modules/goodscollection.ts

@@ -35,7 +35,7 @@ export const useGoodsCollectionStore = defineStore(() => {
         try {
             state.loading = true
             const res = await getTCEGoodsCollections()
-            state.goodsCollections = res.data.filter((e) => e.collectionstatus === 1)
+            state.goodsCollections = res.data.filter((e) => e.collectionstatus === 1 && e.configs.length != 0)
         } finally {
             state.loading = false
         }