diff --git a/src/views/pms/product/index.vue b/src/views/pms/product/index.vue index c81b7b5..b391169 100644 --- a/src/views/pms/product/index.vue +++ b/src/views/pms/product/index.vue @@ -441,9 +441,11 @@ fetchSkuStockList(row.id,{keyword:this.editSkuInfo.keyword}).then(response=>{ this.editSkuInfo.stockList=response.data; }); - fetchProductAttrList(row.productAttributeCategoryId,{type:0}).then(response=>{ - this.editSkuInfo.productAttr=response.data.list; - }); + if(row.productAttributeCategoryId!=null){ + fetchProductAttrList(row.productAttributeCategoryId,{type:0}).then(response=>{ + this.editSkuInfo.productAttr=response.data.list; + }); + } }, handleSearchEditSku(){ fetchSkuStockList(this.editSkuInfo.productId,{keyword:this.editSkuInfo.keyword}).then(response=>{