소스 검색

fix: DimensionProductList activeChildId为空时跳过渲染

liaoxg 3 달 전
부모
커밋
9d5b464508
1개의 변경된 파일과 1개의 추가작업 그리고 1개의 파일을 삭제
  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="为你推荐" />