瀏覽代碼

商品分类

skyblued 3 年之前
父節點
當前提交
831dece105
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/views/shop-mall/goods-list/index.tsx

+ 2 - 2
src/views/shop-mall/goods-list/index.tsx

@@ -200,9 +200,9 @@ export default defineComponent({
             </Col>
           </Row>
 
-          {this.productCategory.id ? (
+          {this.productCategory.id && this.productCategory.children && this.productCategory.children.length ? (
             <Tabs class={styles['filter-productCategory']} shrink ellipsis={false} v-model:active={this.productCategory.active} onChange={() => this.onToggleTag()}>
-              {this.productCategory &&
+              {this.productCategory && 
                 this.productCategory.children.map((n: any, i: number) => (
                   <Tab
                     name={i}