Browse Source

fix: DimensionProductList activeChildId为空时跳过渲染

liaoxg 1 month ago
parent
commit
9d5b464508
1 changed files with 1 additions and 1 deletions
  1. 1 1
      cfc-frontend/pages/body/index.vue

+ 1 - 1
cfc-frontend/pages/body/index.vue

@@ -143,7 +143,7 @@
 
     <!-- 商品推荐 -->
     <DimensionProductList
-      v-if="isLoggedIn"
+      v-if="isLoggedIn && activeChildId"
       dimensionCode="body"
       :familyId="activeChildId"
       title="为你推荐" />